From: Jérôme Benoit Date: Wed, 23 Oct 2024 17:08:48 +0000 (+0200) Subject: build(ci): handle various release type on npm registry X-Git-Tag: v4.4.0~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c4c9bf60a525a59f85c3385420c77243654d5443;p=poolifier.git build(ci): handle various release type on npm registry Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9097fa86..1c27eeef 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -116,8 +116,8 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish Pre-Release - if: ${{ contains(steps.package-version.outputs.version, '-') == true && contains(steps.package-version.outputs.version, '-beta') == false }} + - name: Publish Release Candidate + if: ${{ contains(steps.package-version.outputs.version, '-rc') == true }} run: pnpm publish --no-git-checks --tag next env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -128,6 +128,12 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish Alpha Release + if: ${{ contains(steps.package-version.outputs.version, '-alpha') == true }} + run: pnpm publish --no-git-checks --tag alpha + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + publish-documentation: needs: [publish-npm, publish-jsr] runs-on: ubuntu-latest