Skip to content

Commit

Permalink
Merge pull request #4 from statuscompliance/conf/3-Create-NPM-autopub…
Browse files Browse the repository at this point in the history
…lisher

conf: Create npm-publish.yml
  • Loading branch information
FJMonteroInformatica authored Feb 29, 2024
2 parents f03fee1 + 4c91221 commit 986a920
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: NPM auto-publisher

on:
release:
types: [created]

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

0 comments on commit 986a920

Please sign in to comment.