Skip to content

Commit

Permalink
Merge pull request #2150 from h3poteto/fix/auth-release
Browse files Browse the repository at this point in the history
Specify npmAuthToken in release
  • Loading branch information
h3poteto authored Feb 7, 2024
2 parents 496cb4f + e615114 commit fd0ed3e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3 # Refs: https://github.com/actions/setup-node/issues/942
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand All @@ -25,6 +25,12 @@ jobs:
- name: Build
run: |
yarn workspace megalodon run build
# refs: https://github.com/actions/setup-node/issues/942#issuecomment-1920476219
- name: Authentication
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: |
yarn workspace megalodon npm publish
Expand Down

0 comments on commit fd0ed3e

Please sign in to comment.