Skip to content

Commit cad7f4b

Browse files
committed
ci(nightly): add npm auth config
1 parent 207469b commit cad7f4b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
run: yarn build
2222
- name: Extract Version
2323
run: echo "LIB_VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
24+
- name: Initialise NPM config
25+
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
26+
env:
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2428
- name: Publish Nightly Version
2529
run: yarn release-it --ci --no-increment --no-git --no-plugins --npm.tag "nightly" ${{ env.LIB_VERSION }}-nightly-${{ github.sha }}
2630
env:

0 commit comments

Comments
 (0)