Skip to content

Commit

Permalink
explicitly set the access level to 'public' when publishing the packa…
Browse files Browse the repository at this point in the history
…ge to npm with github actions

I've also added an additional action trigger to test this commit in a separate branch, which should be removed before merging
  • Loading branch information
oyisre committed Sep 29, 2023
1 parent de1d10e commit 21a0892
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Node.js Package
on:
release:
types: [prereleased]
push:
branches:
- npm-publish-public

jobs:
build:
Expand All @@ -30,6 +33,6 @@ jobs:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 21a0892

Please sign in to comment.