Skip to content

Commit 834cf0f

Browse files
committed
Enforce generated COMMANDS.md sync and fix publish version bump
1 parent 4c080a0 commit 834cf0f

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ jobs:
4040
- name: Build
4141
run: pnpm build
4242

43+
- name: Verify generated docs are committed
44+
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 22
45+
run: git diff --exit-code
46+
4347
- name: Unit tests
4448
run: pnpm test:unit

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
node-version: 22
3737
cache: "pnpm"
3838

39-
- name: Install npm 11+ for OIDC provenance publishing
40-
run: corepack enable npm && corepack install -g npm@latest
39+
- name: Install npm 11 for OIDC provenance publishing
40+
run: corepack enable npm && corepack install -g npm@11
4141
env:
4242
COREPACK_ENABLE_STRICT: 0
4343

@@ -60,6 +60,7 @@ jobs:
6060
if: github.event_name == 'workflow_dispatch'
6161
id: version
6262
run: |
63+
git checkout -- .
6364
pnpm version ${{ github.event.inputs.version_type }}
6465
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
6566
git push --follow-tags

0 commit comments

Comments
 (0)