diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd398b6c..4812180d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,17 +16,20 @@ jobs: node-version-file: .nvmrc - name: Install dependencies - run: npm install --prefer-offline + run: npm ci --prefer-offline - - name: Lint JavaScript files + - name: Run ESLint run: npm run lint - - name: Lint TypeScript declaration files + - name: Type check run: npm run lint:dts - - name: Run tests + - name: Run unit tests run: npm run test:ci + - name: Codecov + uses: codecov/codecov-action@v3 + - name: Run module tests run: npm run test:esm @@ -35,6 +38,3 @@ jobs: - name: Run benchmark run: npm run benchmark - - - name: Codecov - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index bdcf31a7..c80b3ce5 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -18,7 +18,7 @@ jobs: node-version-file: .nvmrc - name: Install dependencies - run: npm install --prefer-offline + run: npm ci --prefer-offline - name: Lint commit message run: npx commitlint --from=HEAD~1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 711500ff..0df3d2c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: registry-url: https://registry.npmjs.org - name: Install dependencies - run: npm install + run: npm ci - name: Publish run: npm publish diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 7429871d..f4560f4a 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -16,4 +16,4 @@ jobs: - name: Size Limit uses: andresz1/size-limit-action@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ github.token }}