Skip to content

Commit 883cf97

Browse files
committed
add npmrc and minor changes to publish.yml
1 parent 68c07be commit 883cf97

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717
uses: actions/setup-node@v2
1818
with:
1919
node-version: '18'
20+
registry-url: 'https://registry.npmjs.org'
2021

2122
- name: Install dependencies
22-
run: npm install
23+
run: npm ci
2324

2425
- name: Publish to npm
25-
run: npm publish
26+
run: npm publish --provenance --access public
2627
env:
2728
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2829

.npmrc

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

0 commit comments

Comments
 (0)