From 21a0892c65f145bc62c92d4fecb2ea2cd87f5fad Mon Sep 17 00:00:00 2001 From: Raghavan Chandrabalan Date: Fri, 29 Sep 2023 11:29:18 -0400 Subject: [PATCH] explicitly set the access level to 'public' when publishing the package 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 --- .github/workflows/npm-publish-github-packages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index b83df8c..46cf578 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -6,6 +6,9 @@ name: Node.js Package on: release: types: [prereleased] + push: + branches: + - npm-publish-public jobs: build: @@ -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}}