diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 257d854dca9..24e6e68fdc6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,32 +73,33 @@ jobs: run: npm run notify:docs env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - quantic-prod: - needs: release - runs-on: ubuntu-latest - environment: 'Quantic Production' - permissions: - contents: read - packages: write - discussions: write - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - with: - ref: 'release/v2' - - uses: ./.github/actions/setup - - uses: ./.github/actions/setup-sfdx - - name: Promote SFDX package to production - run: | - echo "${{ secrets.SFDX_AUTH_JWT_KEY }}" > ${{ vars.SFDX_AUTH_JWT_KEY_FILE }} - npx --no-install nx run quantic:"promote:sfdx:ci" - rm ${{ vars.SFDX_AUTH_JWT_KEY_FILE }} - env: - SFDX_AUTH_CLIENT_ID: ${{ secrets.SFDX_AUTH_CLIENT_ID }} - SFDX_AUTH_JWT_KEY: ${{ secrets.SFDX_AUTH_JWT_KEY }} - SFDX_AUTH_JWT_USERNAME: ${{ vars.SFDX_AUTH_JWT_USERNAME }} - SFDX_AUTH_JWT_KEY_FILE: ${{ vars.SFDX_AUTH_JWT_KEY_FILE }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - working-directory: ./packages/quantic + # TODO SFINT-5697 + # quantic-prod: + # needs: release + # runs-on: ubuntu-latest + # environment: 'Quantic Production' + # permissions: + # contents: read + # packages: write + # discussions: write + # steps: + # - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 + # with: + # ref: 'release/v2' + # - uses: ./.github/actions/setup + # - uses: ./.github/actions/setup-sfdx + # - name: Promote SFDX package to production + # run: | + # echo "${{ secrets.SFDX_AUTH_JWT_KEY }}" > ${{ vars.SFDX_AUTH_JWT_KEY_FILE }} + # npx --no-install nx run quantic:"promote:sfdx:ci" + # rm ${{ vars.SFDX_AUTH_JWT_KEY_FILE }} + # env: + # SFDX_AUTH_CLIENT_ID: ${{ secrets.SFDX_AUTH_CLIENT_ID }} + # SFDX_AUTH_JWT_KEY: ${{ secrets.SFDX_AUTH_JWT_KEY }} + # SFDX_AUTH_JWT_USERNAME: ${{ vars.SFDX_AUTH_JWT_USERNAME }} + # SFDX_AUTH_JWT_KEY_FILE: ${{ vars.SFDX_AUTH_JWT_KEY_FILE }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # working-directory: ./packages/quantic # TODO KIT-3074 Fix the publication into the GitHub Packages, and uncomment # github-prod: diff --git a/packages/atomic-angular/projects/atomic-angular/project.json b/packages/atomic-angular/projects/atomic-angular/project.json index 3fdd499c3a8..c598738f34b 100644 --- a/packages/atomic-angular/projects/atomic-angular/project.json +++ b/packages/atomic-angular/projects/atomic-angular/project.json @@ -9,7 +9,7 @@ "outputs": [], "executor": "nx:run-commands", "options": { - "command": "node ../../../../scripts/deploy/update-npm-tag.mjs latest", + "command": "node ../../../../scripts/deploy/update-npm-tag.mjs v2", "cwd": "packages/atomic-angular/projects/atomic-angular" } } diff --git a/packages/atomic-hosted-page/package.json b/packages/atomic-hosted-page/package.json index 4d90b2f25ae..6a1a02359f9 100644 --- a/packages/atomic-hosted-page/package.json +++ b/packages/atomic-hosted-page/package.json @@ -27,7 +27,7 @@ "validate:definitions": "tsc --noEmit --esModuleInterop --skipLibCheck ./dist/types/components.d.ts", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest" + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2" }, "dependencies": { "@coveo/bueno": "0.46.1", diff --git a/packages/atomic-react/package.json b/packages/atomic-react/package.json index cbfe483b818..9c26ae1bd12 100644 --- a/packages/atomic-react/package.json +++ b/packages/atomic-react/package.json @@ -17,7 +17,7 @@ "build:bundles": "concurrently \"npm run build:bundles:esm\" \"npm run build:bundles:cjs\" \"npm run build:bundles:iife\"", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest", + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2", "build:assets": "ncp ../atomic/dist/atomic/assets dist/assets && ncp ../atomic/dist/atomic/lang dist/lang " }, "main": "./dist/cjs/index.js", diff --git a/packages/atomic/package.json b/packages/atomic/package.json index 1083abc7b8b..f9b3bb5ccab 100644 --- a/packages/atomic/package.json +++ b/packages/atomic/package.json @@ -43,7 +43,7 @@ "e2e:insight:watch": "cypress open --config-file cypress-insight-panel.config.ts --browser chrome", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest", + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2", "validate:definitions": "tsc --noEmit --esModuleInterop --skipLibCheck ./dist/types/components.d.ts" }, "dependencies": { diff --git a/packages/auth/package.json b/packages/auth/package.json index 27bab812f9e..6602a77d40e 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -21,7 +21,7 @@ "clean": "rimraf -rf dist/*", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest", + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2", "e2e": "npm run e2e:saml", "e2e:saml": "vite manual-e2e/saml/" }, diff --git a/packages/bueno/package.json b/packages/bueno/package.json index 2d01301b3fd..695dc39c57d 100644 --- a/packages/bueno/package.json +++ b/packages/bueno/package.json @@ -27,7 +27,7 @@ "test:watch": "jest --watch --colors --no-cache", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest" + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2" }, "devDependencies": { "@coveo/release": "1.0.0", diff --git a/packages/headless-react/package.json b/packages/headless-react/package.json index 92f07afafc4..4ff117786b3 100644 --- a/packages/headless-react/package.json +++ b/packages/headless-react/package.json @@ -30,7 +30,7 @@ "lint": "eslint .; publint", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest" + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2" }, "dependencies": { "@coveo/headless": "2.80.0" diff --git a/packages/headless/package.json b/packages/headless/package.json index e414dec0725..d13cdcf1b7c 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -39,7 +39,7 @@ "test:integration": "jest --testPathPattern=src/integration-tests", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest", + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2", "build:doc": "npm run build:doc:extract && npm run build:doc:parse", "build:doc:extract": "node ./scripts/extract-documentation.mjs", "build:doc:parse": "ts-node --project ./doc-parser/tsconfig.build.json ./doc-parser/doc-parser.ts" diff --git a/packages/quantic/package.json b/packages/quantic/package.json index 80f6e3e51ba..af6ce4d1175 100644 --- a/packages/quantic/package.json +++ b/packages/quantic/package.json @@ -40,7 +40,7 @@ "promote:sfdx:ci": "npm run publish:sfdx -- --promote --ci", "publish:npm": "npm run-script -w=@coveo/release npm-publish", "publish:bump": "npm run-script -w=@coveo/release bump", - "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs latest", + "promote:npm:latest": "node ../../scripts/deploy/update-npm-tag.mjs v2", "preinstall": "node scripts/npm/check-sfdx-project.js", "postinstall": "node scripts/npm/setup-quantic.js" }, diff --git a/utils/release/npm-publish-package.mjs b/utils/release/npm-publish-package.mjs index 6ff2cc3c660..3c0b6793a0c 100755 --- a/utils/release/npm-publish-package.mjs +++ b/utils/release/npm-publish-package.mjs @@ -38,7 +38,7 @@ if (!name || !version) { throw 'Expected name and version to exist in package.json.'; } if (!(await isPublished(name, version))) { - const tagToPublish = isPrerelease ? 'alpha' : 'beta'; + const tagToPublish = isPrerelease ? 'v2-alpha' : 'v2-beta'; await npmPublish('.', { tag: tagToPublish, provenance: shouldProvideProvenance,