From: Shinigami Date: Sat, 20 Feb 2021 16:18:24 +0000 (+0100) Subject: Publish betas with beta tag (#204) X-Git-Tag: v2.0.0-beta.7~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5716dd56de3de46c5871a6af3b9f02da897bc2e4;p=poolifier.git Publish betas with beta tag (#204) --- diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 048d952e..c62f0b54 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -47,10 +47,21 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org/ + - name: Read package.json version + uses: tyankatsu0105/read-package-version-actions@v1 + id: package-version + - name: Install run: npm ci - - name: Publish + - name: Publish Release + if: ${{ contains(steps.package-version.outputs.version, '-') == false }} run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} + + - name: Publish Beta + if: ${{ contains(steps.package-version.outputs.version, 'beta') }} + run: npm publish --tag beta + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}