From 29dcd4edd517f5f256763995eda57aa828203608 Mon Sep 17 00:00:00 2001 From: Devesh-Skyflow Date: Thu, 23 Apr 2026 17:57:03 +0530 Subject: [PATCH 1/2] SK-2770: publish v1.x releases under the v1 dist-tag to preserve latest as v2 --- .github/workflows/common-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/common-release.yml b/.github/workflows/common-release.yml index 598fc39c..9a8bcf84 100644 --- a/.github/workflows/common-release.yml +++ b/.github/workflows/common-release.yml @@ -79,7 +79,12 @@ jobs: if [[ "${{ inputs.tag }}" == "beta" ]]; then npm publish --tag beta elif [[ "${{ inputs.tag }}" == "public" ]]; then - npm publish + MAJOR_VERSION=$(node -p "require('./package.json').version.split('.')[0]") + if [[ "$MAJOR_VERSION" == "1" ]]; then + npm publish --tag v1 + else + npm publish + fi elif [[ "${{ inputs.tag }}" == "internal" ]]; then curl -u ${{ secrets.JFROG_USERNAME }}:${{ secrets.JFROG_PASSWORD }} https://prekarilabs.jfrog.io/prekarilabs/api/npm/auth/ > ~/.npmrc npm config set registry https://prekarilabs.jfrog.io/prekarilabs/api/npm/npm/ From 62b19c98dbb89fd019a34b60cdcf9413d2aff2a0 Mon Sep 17 00:00:00 2001 From: Devesh-Skyflow Date: Thu, 23 Apr 2026 18:06:28 +0530 Subject: [PATCH 2/2] fix : PAT --- .github/workflows/common-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/common-release.yml b/.github/workflows/common-release.yml index 9a8bcf84..600fc231 100644 --- a/.github/workflows/common-release.yml +++ b/.github/workflows/common-release.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: token: ${{ secrets.PAT_ACTIONS }} fetch-depth: 0 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: "https://registry.npmjs.org"