Skip to content

Commit 02c9b33

Browse files
committed
chore: replace deprecated npm publish action
1 parent 11917f7 commit 02c9b33

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,21 @@ jobs:
3838
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3939
github_token: ${{ secrets.GITHUB_TOKEN }}
4040
model: claude-sonnet-4-5-20250929
41-
- uses: js-devtools/npm-publish@v4
42-
if: ${{ !contains(github.ref, '-alpha.') }}
41+
- name: Setup Node.js for npm publish
42+
uses: actions/setup-node@v6
4343
with:
44-
token: ${{ secrets.NPM_TOKEN }}
45-
provenance: true
46-
- uses: js-devtools/npm-publish@v4
44+
node-version: 22.x
45+
registry-url: 'https://registry.npmjs.org'
46+
- name: Publish to npm
47+
if: ${{ !contains(github.ref, '-alpha.') }}
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
run: npm publish --provenance --access public
51+
- name: Publish to npm with next tag
4752
if: ${{ contains(github.ref, '-alpha.') }}
48-
with:
49-
token: ${{ secrets.NPM_TOKEN }}
50-
tag: next
51-
provenance: true
53+
env:
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
run: npm publish --tag next --provenance --access public
5256
- name: Create GitHub release
5357
id: create_release
5458
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)