From 8e362972a8e41ef23e00733f15036afe03ac3265 Mon Sep 17 00:00:00 2001 From: Nicolas Lebrun Date: Thu, 23 May 2024 09:50:48 +0200 Subject: [PATCH] Update publish-package.yml --- .github/workflows/publish-package.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index ca464b4..72eaa1f 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -1,8 +1,9 @@ name: Publish on NPM on: - release: - types: [published] - + # release: + # types: [published] + workflow_dispatch: + jobs: publish: runs-on: ubuntu-latest @@ -17,6 +18,7 @@ jobs: always-auth: true - run: yarn install --immutable - run: yarn build - - run: yarn publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: JS-DevTools/npm-publish@v3 + with: + access: public + token: ${{ secrets.NPM_TOKEN }}