Skip to content

Commit

Permalink
chore(ci): configure npm auth and registry in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Aug 31, 2022
1 parent 49cff82 commit a4d2bd3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,21 @@ jobs:
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Configure npm
run: |
npm config set registry https://registry.npmjs.org
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release package (beta)
if: ${{ github.event.inputs.prerelease == 'true' }}
run: npm run release -- --ci --preRelease=beta
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release package
if: ${{ github.event.inputs.prerelease == 'false' }}
run: npm run release -- --ci
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ libpeerconnection.log
npm-debug.log*
testem.log
yarn-error.log
.npmrc

# ember-try
.node_modules.ember-try/
Expand Down
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@
"@release-it/conventional-changelog": {
"preset": "conventionalcommits"
},
"@release-it-plugins/workspaces": {
"skipChecks": true
}
"@release-it-plugins/workspaces": true
},
"npm": false,
"git": {
Expand Down

0 comments on commit a4d2bd3

Please sign in to comment.