From f77d3a94188aeabca59a72153b691a63be304eb1 Mon Sep 17 00:00:00 2001 From: Raghavan Chandrabalan Date: Fri, 29 Sep 2023 13:17:13 -0400 Subject: [PATCH] fix npm publish github action and add an additional trigger to test publishing --- .github/workflows/npm-publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 77aa031..d8d3ec0 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -2,6 +2,10 @@ name: Publish Package to npmjs on: release: types: [prereleased] + push: + branches: + - npm-publish-public + jobs: build: runs-on: ubuntu-latest @@ -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 }}