Skip to content

Commit

Permalink
fix: gitHub registry needs authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Sep 25, 2019
1 parent 9b9f22d commit 625e3f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ jobs:
run: |
sudo npm install -g npm@
npm config set update-notifier false
- name: Authenticate with NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
- name: Install dependencies
run: npm ci --no-audit
- name: Semantic release
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
npm i --no-save semantic-release@next
npx semantic-release

0 comments on commit 625e3f0

Please sign in to comment.