From 08824602aa10962668ca20ab64b4f8ba79fd27d9 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Sat, 17 Feb 2024 11:30:55 +0100 Subject: [PATCH] ci: update pnpm action-setup, install if after the node version is set (#5225) --- .github/workflows/publish.yml | 10 +++++----- .npmrc | 1 + scripts/publish-ci.ts | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 494b5e662..efa73dbcf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,16 +19,16 @@ jobs: with: fetch-depth: 0 - - name: Install pnpm - uses: pnpm/action-setup@v2 - - - name: Set node version to 18 + - name: Set node version to 20 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ cache: pnpm + - name: Install pnpm + uses: pnpm/action-setup@v3 + - name: Install run: pnpm install --frozen-lockfile --prefer-offline env: diff --git a/.npmrc b/.npmrc index 0d2900e89..80bce8dff 100644 --- a/.npmrc +++ b/.npmrc @@ -1,5 +1,6 @@ ignore-workspace-root-check=true strict-peer-dependencies=false +provenance=true shell-emulator=true registry=https://registry.npmjs.org/ VITE_NODE_DEPS_MODULE_DIRECTORIES=/node_modules/,/packages/ diff --git a/scripts/publish-ci.ts b/scripts/publish-ci.ts index 456e91493..fe6412a39 100644 --- a/scripts/publish-ci.ts +++ b/scripts/publish-ci.ts @@ -27,9 +27,9 @@ const releaseTag = version.includes('beta') ? 'alpha' : undefined -console.log('Publishing version', version, 'with tag', releaseTag) +console.log('Publishing version', version, 'with tag', releaseTag || 'latest') if (releaseTag) - await $`pnpm -r publish --provenance --access public --no-git-checks --tag ${releaseTag}` + await $`pnpm -r publish --access public --no-git-checks --tag ${releaseTag}` else - await $`pnpm -r publish --provenance --access public --no-git-checks` + await $`pnpm -r publish --access public --no-git-checks` -- 2.51.2