From c4c9bf60a525a59f85c3385420c77243654d5443 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 23 Oct 2024 19:08:48 +0200 Subject: [PATCH] build(ci): handle various release type on npm registry MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/release-please.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.34.1