From f780e4f9ec596985b1eb2a309166c8e14c75dec5 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 17 Nov 2024 11:46:42 +0100 Subject: [PATCH] fix: github actions --- .github/workflows/publish.yml | 10 ++++++---- .github/workflows/release.yml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d3fbc9e..5622f33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,10 @@ name: Publish Package to npmjs on: - release: - types: [published] + push: + if: github.ref_name == 'main' + tags: + - 'v*' jobs: publish: @@ -21,9 +23,9 @@ jobs: cache: npm registry-url: 'https://registry.npmjs.org' - - run: npm ci --no-audit + - run: npm ci --force --no-audit - - run: npm build + - run: npm run build - run: npm publish --provenance --access public env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7d9c25..7e86cd4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,7 @@ name: Publish Release to GitHub on: push: + if: github.ref_name == 'main' tags: - 'v*' @@ -21,5 +22,4 @@ jobs: with: generateReleaseNotes: 'true' prerelease: 'false' - reactions: +1,heart,rocket summaryEnabled: 'false'