From 1073f261e93d74ecafe043e644c7e0a4a9cbdc31 Mon Sep 17 00:00:00 2001 From: Bart Veneman <1536852+bartveneman@users.noreply.github.com> Date: Sat, 16 May 2026 20:58:45 +0200 Subject: [PATCH 1/2] Update release workflow for version bump and node version --- .github/workflows/release.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8fef958..7120c43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,33 +5,32 @@ on: types: [created] permissions: - id-token: write # Required for OIDC provenance - contents: write + id-token: write # Required for OIDC provenance attestations + contents: write # Required for pushing version bump commit jobs: publish-npm: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - uses: pnpm/action-setup0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 + - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: - node-version: 24 - registry-url: 'https://registry.npmjs.org' + node-version: 22 + registry-url: https://registry.npmjs.org/ + cache: pnpm - run: pnpm install --frozen-lockfile --ignore-scripts - - run: pnpm test - - run: pnpm run build - - name: Bump version - run: | - VERSION=${GITHUB_REF_NAME#v} - pnpm version $VERSION --no-git-tag-version - - name: Commit and push version bump + - name: Bump version from release tag env: DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} run: | + VERSION=${GITHUB_REF_NAME#v} + pnpm version $VERSION --no-git-tag-version git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add package.json pnpm-lock.yaml - git commit -m "chore: bump version to ${GITHUB_REF_NAME#v}" + git commit -m "chore: bump version to $VERSION" git push origin HEAD:$DEFAULT_BRANCH + - run: pnpm test + - run: pnpm run build - run: pnpm publish --no-git-checks From beab12cdd2f03f18b6dd8e44aca3f2408bb7dfa4 Mon Sep 17 00:00:00 2001 From: Bart Veneman <1536852+bartveneman@users.noreply.github.com> Date: Sat, 16 May 2026 20:59:27 +0200 Subject: [PATCH 2/2] Apply suggestion from @bartveneman --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7120c43..dbc7188 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ cache: pnpm - run: pnpm install --frozen-lockfile --ignore-scripts