Skip to content

Commit

Permalink
Merge pull request #12 from TopologyHealth:npm-publish-public
Browse files Browse the repository at this point in the history
Publish package to NPM on each release
  • Loading branch information
joshcds authored Oct 2, 2023
2 parents de1d10e + f77d3a9 commit 6a42cd1
Show file tree
Hide file tree
Showing 3 changed files with 975 additions and 1,705 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Package to npmjs
on:
release:
types: [prereleased]
push:
branches:
- npm-publish-public

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 ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 6a42cd1

Please sign in to comment.