Skip to content

Commit

Permalink
workflow: add publish action (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMauroy authored Sep 1, 2024
1 parent 58a27af commit c8453ed
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
File renamed without changes.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20

0 comments on commit c8453ed

Please sign in to comment.