Skip to content

Commit

Permalink
Automatically publish each release to NPM
Browse files Browse the repository at this point in the history
The `NPM_TOKEN` secret will expire on 2024-03-06, so we should figure
out something repeatable before then.
  • Loading branch information
gabebw-grammarly committed Dec 12, 2023
1 parent 92cbb84 commit e673d97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ jobs:
file: ./${{ steps.branch_name.outputs.TARBALL }}
asset_name: ${{ steps.branch_name.outputs.TARBALL }}
tag: ${{ github.ref }}
- name: Set up .npmrc file to publish to NPM
uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish release to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit e673d97

Please sign in to comment.