Skip to content

Commit

Permalink
Merge pull request #146 from KPrasch/actions
Browse files Browse the repository at this point in the history
Automate NPM Publication
  • Loading branch information
KPrasch authored Oct 13, 2023
2 parents 0f3aca7 + dfb41b1 commit a22e581
Show file tree
Hide file tree
Showing 5 changed files with 502 additions and 432 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Package to NPM
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ nucypher-core = "*"
pre-commit = "*"
tox = "*"
pyyaml = "*"
bump2version = "*"

[dev-packages]

Expand Down
Loading

0 comments on commit a22e581

Please sign in to comment.