Skip to content

Commit

Permalink
Merge pull request #31 from newfold-labs/add/npm-publish-workflow
Browse files Browse the repository at this point in the history
Add/npm publish workflow
  • Loading branch information
circlecube authored Jan 13, 2025
2 parents a062a26 + 53ba007 commit e53d2eb
Show file tree
Hide file tree
Showing 3 changed files with 5,496 additions and 3,410 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package to npmjs
on:
release:
types:
- created
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
Loading

0 comments on commit e53d2eb

Please sign in to comment.