Skip to content

Commit

Permalink
feat: add action to publish to npm
Browse files Browse the repository at this point in the history
Added a github action to publish this module to npm on release creation on github
  • Loading branch information
SQLExceptionPhil authored Sep 16, 2024
1 parent f031650 commit bbad20e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to npm

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bbad20e

Please sign in to comment.