Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update pnpm action-setup, install if after the node version is set #5225

Merged
merged 3 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`
Loading