From 8e76764a708142ac1b7659e3d5c7735d44ca2b40 Mon Sep 17 00:00:00 2001 From: Oluwapizzy Date: Fri, 14 Aug 2026 14:16:43 -0400 Subject: [PATCH] Align CI/CD with pnpm 11.9.0 so deploys match the SRE frontend-cd default. --- .github/workflows/cd.yml | 1 + .github/workflows/ci.yml | 1 + README.md | 3 ++- app/package.json | 11 ++--------- app/pnpm-lock.yaml | 14 +++++++------- app/pnpm-workspace.yaml | 8 ++++++++ 6 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 app/pnpm-workspace.yaml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7bce55a41..6df851eb0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -24,6 +24,7 @@ jobs: with: target: ${{ inputs.environment }} node_version: "24" + pnpm_version: "11.9.0" app_name: 'namerequest' working_directory: 'app' secrets: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca8b90507..172aa73d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,4 +16,5 @@ jobs: with: app_name: "namerequest" working_directory: "./app" + pnpm_version: "11.9.0" codecov_flag: "" diff --git a/README.md b/README.md index 4b12c53eb..add3e2ba7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ ## Project setup ``` -npm install -g pnpm@9 +corepack enable +corepack prepare pnpm@11.9.0 --activate pnpm install ``` diff --git a/app/package.json b/app/package.json index 989cfbc18..5e4f504d3 100644 --- a/app/package.json +++ b/app/package.json @@ -5,6 +5,7 @@ "engines": { "node": ">=24" }, + "packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b", "appName": "Name Request UI", "sbcName": "SBC Common Components", "scripts": { @@ -80,13 +81,5 @@ "vue-test-utils-helpers": "git+https://github.com/bcgov/vue-test-utils-helpers.git", "vuex-class": "^0.3.2", "vuex-module-decorators": "^1.2.0" - }, - "pnpm": { - "patchedDependencies": { - "sbc-common-components@3.0.15-c": "patches/sbc-common-components@3.0.15-c.patch" - }, - "onlyBuiltDependencies": [ - "vue-demi" - ] } -} \ No newline at end of file +} diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml index 98dabb1be..123e16996 100644 --- a/app/pnpm-lock.yaml +++ b/app/pnpm-lock.yaml @@ -5,9 +5,7 @@ settings: excludeLinksFromLockfile: false patchedDependencies: - sbc-common-components@3.0.15-c: - hash: dbxsbs7nnq5sxpyu75cpekwise - path: patches/sbc-common-components@3.0.15-c.patch + sbc-common-components@3.0.15-c: 04ee617a4ac7ced8e6cfab349eeccdc740e5a5be3543ee92d05d0966a39046be importers: @@ -75,7 +73,7 @@ importers: version: 0.4.4 sbc-common-components: specifier: 3.0.15-c - version: 3.0.15-c(patch_hash=dbxsbs7nnq5sxpyu75cpekwise)(@types/node@20.19.35)(postcss@8.5.8)(sass@1.59.3) + version: 3.0.15-c(patch_hash=04ee617a4ac7ced8e6cfab349eeccdc740e5a5be3543ee92d05d0966a39046be)(@types/node@20.19.35)(postcss@8.5.8)(sass@1.59.3) tslib: specifier: ^2.8.1 version: 2.8.1 @@ -721,6 +719,7 @@ packages: '@ungap/structured-clone@1.3.0': resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} + deprecated: Potential CWE-502 - Update to 1.3.1 or higher '@vitejs/plugin-vue2@2.3.4': resolution: {integrity: sha512-LgqtRRedJb1KdmgcllwGX0gtlPvOvtR6pITXmqxGwQhBZaAysg0Hd7wvj3sjCsj4+PENWsqS7O+ceYSOgJ+H9g==} @@ -3316,11 +3315,12 @@ packages: uuid@3.4.0: resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==} - deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true v8-compile-cache@2.4.0: @@ -3529,7 +3529,7 @@ packages: resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==} vue-test-utils-helpers@https://codeload.github.com/bcgov/vue-test-utils-helpers/tar.gz/aeffe77a87b9a37dacf4b38d77bc1833db02a8a2: - resolution: {tarball: https://codeload.github.com/bcgov/vue-test-utils-helpers/tar.gz/aeffe77a87b9a37dacf4b38d77bc1833db02a8a2} + resolution: {gitHosted: true, integrity: sha512-8SQ8DpHzn++bTkDUxQcdl9QYfjXWDmj4kLzAd5Kk6Cn65kzAgjsbEh+BswbqTvhtF4/cSn8/b2bPbAzmdSlJ2A==, tarball: https://codeload.github.com/bcgov/vue-test-utils-helpers/tar.gz/aeffe77a87b9a37dacf4b38d77bc1833db02a8a2} version: 1.0.3 vue2-filters@0.7.2: @@ -6765,7 +6765,7 @@ snapshots: dependencies: xmlchars: 2.2.0 - sbc-common-components@3.0.15-c(patch_hash=dbxsbs7nnq5sxpyu75cpekwise)(@types/node@20.19.35)(postcss@8.5.8)(sass@1.59.3): + sbc-common-components@3.0.15-c(patch_hash=04ee617a4ac7ced8e6cfab349eeccdc740e5a5be3543ee92d05d0966a39046be)(@types/node@20.19.35)(postcss@8.5.8)(sass@1.59.3): dependencies: '@mdi/font': 4.9.95 axios: 0.21.4 diff --git a/app/pnpm-workspace.yaml b/app/pnpm-workspace.yaml new file mode 100644 index 000000000..39a2d16b3 --- /dev/null +++ b/app/pnpm-workspace.yaml @@ -0,0 +1,8 @@ +packages: [] +patchedDependencies: + sbc-common-components@3.0.15-c: patches/sbc-common-components@3.0.15-c.patch +allowBuilds: + core-js: true + esbuild: true + vue-demi: true + vuex-module-decorators: true