From 4ad47af74eba47aab7d559b3d7519141bfda2324 Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Sat, 24 Feb 2024 02:24:59 -0500 Subject: [PATCH] Fix github actions --- .changeset/kind-shoes-switch.md | 5 ----- .github/workflows/ci.yml | 8 +++++--- .github/workflows/release.yml | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 .changeset/kind-shoes-switch.md diff --git a/.changeset/kind-shoes-switch.md b/.changeset/kind-shoes-switch.md deleted file mode 100644 index 119fa3ef..00000000 --- a/.changeset/kind-shoes-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@bitauth/libauth': patch ---- - -Upgrade `@playwright/test` to close [#115](https://github.com/bitauth/libauth/pull/115) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 605433c5..54a8fd2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,10 @@ jobs: strategy: fail-fast: false matrix: - node: [18, 20, latest] + node-version: [18, 20, latest] runner_index: [0, 1, 2, 3] runners_per_version: [4] - name: Test Node ${{ matrix.node }} (${{ matrix.runner_index }}/${{ matrix.runners_per_version }}) + name: Test Node ${{ matrix.node-version }} (${{ matrix.runner_index }}) steps: - uses: actions/checkout@v4 with: @@ -18,7 +18,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: ${{ matrix.node-version }} - run: yarn install --immutable --immutable-cache - run: yarn build - run: yarn test:unit @@ -26,7 +26,9 @@ jobs: CI_NODE_INDEX: ${{ matrix.runner_index }} CI_NODE_TOTAL: ${{ matrix.runners_per_version }} - run: yarn cov:lcov + if: ${{ matrix.node-version }} == 20 - name: Upload test coverage + if: ${{ matrix.node-version }} == 20 uses: codecov/codecov-action@v4 with: fail_ci_if_error: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87e3f04d..dc43ebfa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: id: changesets uses: changesets/action@v1 with: - version: yarn version + version: yarn changeset:version publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 6686ec14..3dac5216 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "doc:extract": "mkdir -p build/api && api-extractor run --local --typescript-compiler-folder node_modules/typescript", "doc:generate": "api-documenter markdown -i temp -o build/api/markdown", "doc:check-api": "api-extractor run --typescript-compiler-folder node_modules/typescript", - "version": "yarn changeset version && yarn fix:prettier", + "changeset:version": "yarn changeset version && yarn fix:prettier", "release": "yarn build && yarn changeset publish" }, "engines": {