From 17c90274b13fc2728dd50c42e39697fd0e5717cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 18 Mar 2023 20:08:07 +0100 Subject: [PATCH] build: permit SemVer pre-release publication MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/npmpublish.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index e32ce385..2a72a4d8 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -58,8 +58,14 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Publish Beta - if: ${{ contains(steps.package-version.outputs.version, 'beta') }} - run: npm publish --tag beta + - name: Publish Pre-Release + if: ${{ contains(steps.package-version.outputs.version, '-') == true }} + run: npm publish --tag next env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + # - name: Publish Beta Release + # if: ${{ contains(steps.package-version.outputs.version, 'beta') == true }} + # run: npm publish --tag beta + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} -- 2.34.1