From be562ec71eae4bbf88d9de622bef497f3a7b7c4d Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 12 Sep 2024 12:49:54 +0200 Subject: [PATCH] fixed: publish script --- .github/workflows/publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 83d087e..cd2dbc9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,7 @@ name: Publish on: - push: - branches: - - main + release: + types: [published] jobs: publish: @@ -20,9 +19,9 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Publish package to npmjs.com - - run: npm ci - - run: npm run build - - run: npm publish --provenance --access public + run: npm ci + run: npm run build + run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}