Skip to content

Commit

Permalink
Merge pull request #250 from bitchcraft/fix/release-npm-auth
Browse files Browse the repository at this point in the history
build: manually inject npm auth before release
  • Loading branch information
thiemok authored Apr 28, 2024
2 parents d37f1ab + 2af5eff commit 7ea08ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
app_id: ${{ secrets.RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
Expand All @@ -51,8 +51,12 @@ jobs:
global: true
bot: ${{ vars.RELEASE_BOT_ID }}
name: ${{ vars.RELEASE_BOT_NAME }}
- name: Setup npm authn
run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH }}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH }}
- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
Expand All @@ -61,5 +65,4 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH }}
run: yarn release

0 comments on commit 7ea08ac

Please sign in to comment.