Skip to content

Commit

Permalink
Merge pull request #10 from pavanjoshi914/workflow
Browse files Browse the repository at this point in the history
feat: publish workflow for automated publishing
  • Loading branch information
rolznz authored Nov 6, 2023
2 parents 97720c2 + 74297d7 commit 12133ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
"author": "WebBTC",
"license": "MIT",
"private": false,
"scripts": {
"npm:bump-version": "npm version patch",
"npm:publish": "npm publish --access public"
},
"bugs": {
"url": "https://github.com/WebBTC/webln-types/issues"
},
Expand Down

0 comments on commit 12133ce

Please sign in to comment.