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

Upgrade PNPM to latest version #731

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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: 4 additions & 6 deletions .github/workflows/clear-staging-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: ".nvmrc"
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand All @@ -42,4 +40,4 @@ jobs:
SALEOR_CLI_ENV: staging
RUN_FUNCTIONAL_TESTS: true
run: |
pnpm vitest run test/clear_cloud.test.ts
pnpm vitest run test/clear_cloud.test.ts
24 changes: 9 additions & 15 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: ".nvmrc"
cache: pnpm
- name: Install dependencies
run: pnpm install
Expand All @@ -21,12 +19,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
node-version: 16.x
node-version-file: ".nvmrc"
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand All @@ -37,12 +33,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
node-version: 16.x
node-version-file: ".nvmrc"
cache: pnpm
- uses: actions/cache@v3
with:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ jobs:
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16
node-version-file: ".nvmrc"
cache: pnpm
- name: Install the dependencies
run: pnpm install
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ jobs:
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: ".nvmrc"
cache: pnpm
- name: Install the dependencies
run: pnpm install
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/tests-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version-file: ".nvmrc"
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
Expand Down Expand Up @@ -71,4 +69,4 @@ jobs:
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: "Functional tests failed"
SLACK_MESSAGE: "https://github.com/saleor/saleor-cli/actions/workflows/tests-nightly.yml"
MSG_MINIMAL: true
MSG_MINIMAL: true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@
"yargs": "^17.7.2"
},
"engines": {
"node": "^16 || ^18 || ^20"
"node": "^18 || ^20",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you switch to node 22 add here || ^22

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer not to do so as it's uncertain whether Node.js v22 will work properly, thus it introduces more risks and thus more work (scope of the PR is only to upgrade PNPM version in order to be able to scan for license compliance, Node.js v16 isn't supported in latest PNPM version but works properly in v18)

"pnpm": ">=9.0.0 <10.0.0"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"uuid": "8.3.2"
Expand Down
Loading