X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fnpmpublish.yml;h=2a72a4d8a3633e9c1ad8ab05a5ab53cddf59b52b;hb=17c90274b13fc2728dd50c42e39697fd0e5717cf;hp=6b1a3731c6e8678da4fb2320daf009eb9055ad87;hpb=73db65c0c7af9778bec7529fd80a66bca647d8b2;p=poolifier.git diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 6b1a3731..2a72a4d8 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: '18.x' - name: Install run: npm ci @@ -42,12 +42,12 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: '18.x' registry-url: https://registry.npmjs.org/ - name: Read package.json version - uses: tyankatsu0105/read-package-version-actions@v1 id: package-version + uses: jaywcjlove/github-action-package@main - name: Install run: npm ci @@ -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 }}