Skip to content

Commit

Permalink
fix npm publish github action and add an additional trigger to test p…
Browse files Browse the repository at this point in the history
…ublishing
  • Loading branch information
oyisre committed Sep 29, 2023
1 parent 70335ea commit f77d3a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Publish Package to npmjs
on:
release:
types: [prereleased]
push:
branches:
- npm-publish-public

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,6 +17,6 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f77d3a9

Please sign in to comment.