X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fnpmpublish.yml;h=a2f85f19362693f3ff290cf2266f1584703b35bf;hb=036c58dd9dc083da22c5fc39036a2ff49d10dc49;hp=048d952e4e117319fde4b5b6fb183ee4c3c7973e;hpb=e0d233a8e0c7e22275b29c36367a3b6cbc2e39d4;p=poolifier.git diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 048d952e..a2f85f19 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 - name: Install run: npm ci @@ -44,13 +44,24 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: 12 + node-version: 14 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}}