Skip to content

Commit 572a26f

Browse files
authored
Merge pull request #9 from gabrielbarth/sdx
chore: set .npmrc file on wf
2 parents 71dd39c + a12b1dc commit 572a26f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
- name: Build package
2929
run: npm run build
3030

31-
# - name: Set up npm authentication
32-
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
31+
- name: Set up npm authentication
32+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
3333

34-
- name: Publish to GitHub Packages
35-
run: npm publish --provenance --access public
34+
- name: Publish package to npm registry
35+
run: npm publish
3636
env:
3737
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
//registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}
1+
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2+
registry=https://registry.npmjs.org/
3+
always-auth=true

0 commit comments

Comments
 (0)