diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 704e17947..aff7348c6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install dependencies - uses: bahmutov/npm-install@v1 + cache: 'npm' + - run: npm ci - run: npm run build - run: npm run lint @@ -43,8 +43,14 @@ jobs: "npx http-server packages/ui/storybook-static --port 6006 --silent" \ "npx wait-on tcp:6006 && npm test" - - name: Codecov - uses: codecov/codecov-action@v3 + - name: compressed-size-action + uses: preactjs/compressed-size-action@2.5.0 + with: + repo-token: "${{ secrets.github_token }}" + pattern: "./packages/ui/lib/**/*.{js,css,html,json}" + exclude: "{**/*.map,**/node_modules/**}" + + - uses: codecov/codecov-action@v3 chromatic-deployment: runs-on: ubuntu-latest @@ -59,14 +65,4 @@ jobs: with: token: ${{ secrets.github_token }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - compressed-size: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: compressed-size-action - uses: preactjs/compressed-size-action@2.5.0 - with: - repo-token: "${{ secrets.github_token }}" - pattern: "./packages/ui/lib/**/*.{js,css,html,json}" - exclude: "{**/*.map,**/node_modules/**}"