Skip to content

Commit 1c2c5a7

Browse files
authored
Merge pull request #5 from sysdiglabs/update-publish-workflow
Fix release GHA
2 parents 65e420c + ff545da commit 1c2c5a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
git config user.email "github-actions@github.com"
2121
- name: Check whether it's the latest commit
2222
run: if [[ $(git ls-remote origin -h ${{ github.ref }} | cut -f1) != ${{ github.sha }} ]]; then exit 1; fi
23-
- name: Setup Node.js
23+
- name: Setup Node
2424
uses: actions/setup-node@v4.0.2
25-
with:
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
27+
with:
2628
node-version: 20
2729
registry-url: https://registry.npmjs.org
2830
- name: Install build dependencies
@@ -44,7 +46,5 @@ jobs:
4446
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4547
GITHUB_REPOSITORY: ${{ github.repository }}
4648
GITHUB_REF: ${{ github.ref }}
47-
- name: Setup NPM registry
48-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
4949
- name: Release to NPM
50-
run: npm publish --access public
50+
run: npm publish --access public

0 commit comments

Comments
 (0)