Skip to content

Commit bf91c95

Browse files
jbiskurclaude
andcommitted
fix: migrate npm publish to blacksmith trusted auth (no classic tokens)
Classic npm automation tokens were revoked in March 2025. Switch to useblacksmith/setup-node@v5 which handles auth via the runner environment. Also upgrade actions/checkout to v4 and disable provenance (required for self-hosted runners). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ee7f36a commit bf91c95

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: blacksmith-4vcpu-ubuntu-2204
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
with:
1818
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
1919
submodules: true
@@ -37,10 +37,11 @@ jobs:
3737
run: deno publish
3838
- name: Build for NPM
3939
run: deno run -A bin/build-npm.ts
40-
- uses: actions/setup-node@v4
40+
- uses: useblacksmith/setup-node@v5
4141
with:
4242
node-version: "20.x"
4343
registry-url: "https://registry.npmjs.org"
44-
- run: ( cd npm && npm publish --access public )
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
- name: Update npm
45+
run: npm install -g npm@latest
46+
- name: Publish to NPM
47+
run: ( cd npm && npm publish --access public --provenance=false )

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
--health-retries 5
3737
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
with:
4141
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
4242
submodules: true

0 commit comments

Comments
 (0)