Skip to content

Commit 1ec507e

Browse files
khaliqgantclaude
andcommitted
ci: add npm install -g npm@latest for provenance + --ignore-scripts
Matches relay repo pattern: update npm before publish (required for provenance attestation) and --ignore-scripts for safety. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3af1c13 commit 1ec507e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,20 +160,23 @@ jobs:
160160
registry-url: "https://registry.npmjs.org"
161161
cache: npm
162162

163+
- name: Update npm to latest (required for provenance)
164+
run: npm install -g npm@latest
165+
163166
- run: npm ci
164167
- run: npx turbo build
165168

166169
- name: Publish @relayauth/${{ matrix.package }}
167170
if: ${{ github.event.inputs.dry_run != 'true' }}
168171
working-directory: packages/${{ matrix.package }}
169-
run: npm publish --access public --provenance --tag ${{ github.event.inputs.tag }}
172+
run: npm publish --access public --provenance --tag ${{ github.event.inputs.tag }} --ignore-scripts
170173
env:
171174
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
172175

173176
- name: Dry run publish
174177
if: ${{ github.event.inputs.dry_run == 'true' }}
175178
working-directory: packages/${{ matrix.package }}
176-
run: npm publish --access public --dry-run
179+
run: npm publish --access public --dry-run --ignore-scripts
177180

178181
release:
179182
name: Create GitHub Release

0 commit comments

Comments
 (0)