Skip to content

Commit

Permalink
ci: update pnpm action-setup, install if after the node version is set (
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Feb 17, 2024
1 parent e82b00c commit 0882460
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -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/
6 changes: 3 additions & 3 deletions scripts/publish-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit 0882460

Please sign in to comment.