From 52568feecf0b0c1c7da1a433110919f763cba658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Somhairle=20MacLe=C3=B2id?= Date: Fri, 24 Jan 2025 13:39:37 +0000 Subject: [PATCH] Update release.yml (#3407) --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf187b11941..6703def23c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -226,7 +226,7 @@ jobs: - run: mkdir npm/workerd-${{ matrix.arch }}/bin - run: cp /tmp/workerd${{ matrix.arch == 'windows-64' && '.exe' || '' }} npm/workerd-${{ matrix.arch }}/bin/workerd${{ matrix.arch == 'windows-64' && '.exe' || '' }} - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > npm/workerd-${{ matrix.arch }}/.npmrc - - run: cd npm/workerd-${{ matrix.arch }} && npm publish --access public --tag 'latest' + - run: cd npm/workerd-${{ matrix.arch }} && npm publish --access public --tag ${{ startsWith(needs.version.outputs.version, '0') && 'beta' || 'latest'}} env: NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} @@ -331,7 +331,7 @@ jobs: WORKERD_VERSION: ${{ needs.version.outputs.version }} LATEST_COMPATIBILITY_DATE: ${{ needs.version.outputs.date }} - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > npm/workerd/.npmrc - - run: cd npm/workerd && npm publish --access public --tag 'latest' + - run: cd npm/workerd && npm publish --access public --tag ${{ startsWith(needs.version.outputs.version, '0') && 'beta' || 'latest'}} env: NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} @@ -371,7 +371,7 @@ jobs: - run: cp -r bazel-bin/types/definitions/. npm/workers-types - run: cp npm/workers-types/oldest/* npm/workers-types - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > npm/workers-types/.npmrc - - run: cd npm/workers-types && npm publish --access public --tag 'latest' + - run: cd npm/workers-types && npm publish --access public --tag ${{ startsWith(needs.version.outputs.version, '0') && 'beta' || 'latest'}} env: NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}