diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f570816b..8b57d0f2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -39,7 +39,7 @@ jobs: token: ${{ secrets.NPM_AUTH_TOKEN }} package: ./shared/package.json access: public - tag: ${{ env.REF }} + tag: ${{ env.REF == 'release' && 'latest' || env.REF }} client: name: Publish client runs-on: ubuntu-latest @@ -69,7 +69,7 @@ jobs: token: ${{ secrets.NPM_AUTH_TOKEN }} package: ./client/package.json access: public - tag: ${{ env.REF }} + tag: ${{ env.REF == 'release' && 'latest' || env.REF }} webview: name: Publish webview runs-on: ubuntu-latest @@ -99,7 +99,7 @@ jobs: token: ${{ secrets.NPM_AUTH_TOKEN }} package: ./webview/package.json access: public - tag: ${{ env.REF }} + tag: ${{ env.REF == 'release' && 'latest' || env.REF }} worker: name: Publish worker runs-on: ubuntu-latest @@ -129,7 +129,7 @@ jobs: token: ${{ secrets.NPM_AUTH_TOKEN }} package: ./worker/package.json access: public - tag: ${{ env.REF }} + tag: ${{ env.REF == 'release' && 'latest' || env.REF }} natives: name: Publish natives runs-on: ubuntu-latest @@ -193,7 +193,7 @@ jobs: token: ${{ secrets.NPM_AUTH_TOKEN }} package: ./natives/package.json access: public - tag: ${{ env.REF }} + tag: ${{ env.REF == 'release' && 'latest' || env.REF }} server: name: Publish server runs-on: ubuntu-latest @@ -223,7 +223,7 @@ jobs: token: ${{ secrets.NPM_AUTH_TOKEN }} package: ./server/package.json access: public - tag: ${{ env.REF }} + tag: ${{ env.REF == 'release' && 'latest' || env.REF }} test: name: Test changes runs-on: ubuntu-latest