Skip to content

Commit 9409424

Browse files
committed
fix: pass homebrew and npm tokens in release workflow
1 parent 8371a07 commit 9409424

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,23 @@ jobs:
3131
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
35+
36+
- name: Set up Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: "20"
40+
registry-url: "https://registry.npmjs.org"
41+
42+
- name: Update npm package version
43+
run: |
44+
VERSION=${GITHUB_REF_NAME#v}
45+
cd npm
46+
npm version "$VERSION" --no-git-tag-version
47+
48+
- name: Publish to npm
49+
run: |
50+
cd npm
51+
npm publish --access public
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)