Skip to content

Commit

Permalink
build: bump pnpm version to v9
Browse files Browse the repository at this point in the history
Update package.json:
  - update "engines.pnpm" field to ^9
  - add "packageManager" field for use with "pnpm/action-setup"
Update pnpm-lock.yaml
Remove the "version" input from the "pnpm/action-setup" action because
it will use the value from "packageManager" in `package.json`

Remove duplicate "test" job from continuous-integration.yml
  • Loading branch information
matijs committed May 22, 2024
1 parent bb86e67 commit 82fae0e
Show file tree
Hide file tree
Showing 3 changed files with 10,397 additions and 8,457 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:

- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14

- name: Set up Node.js version
uses: actions/[email protected]
Expand All @@ -40,8 +38,6 @@ jobs:

- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14

- name: Set up Node.js version
uses: actions/[email protected]
Expand All @@ -67,8 +63,6 @@ jobs:

- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14

- name: Set up Node.js version
uses: actions/[email protected]
Expand All @@ -94,8 +88,6 @@ jobs:

- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14

- name: Set up Node.js version
uses: actions/[email protected]
Expand All @@ -120,33 +112,6 @@ jobs:
path: '@nl-design-system-community/nlds-community-blocks.zip'
retention-days: 14

test:
runs-on: ubuntu-latest
needs: install

steps:
- name: Download code from GitHub
uses: actions/[email protected]

- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14

- name: Set up Node.js version
uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install dependencies
run: |
pnpm install
- name: 'Continuous Integration: test'
run: |
pnpm run --if-present test
publish:
runs-on: ubuntu-latest
needs: [build, lint, test]
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"engines": {
"node": "^20",
"pnpm": "^8"
"pnpm": "^9"
},
"scripts": {
"build": "pnpm run build:blocks && pnpm run build:mix && pnpm run build:zip",
Expand Down Expand Up @@ -107,5 +107,6 @@
"@wordpress/icons": "9.44.0",
"classnames": "2.5.1",
"is-url": "1.2.4"
}
},
"packageManager": "[email protected]+sha256.19c17528f9ca20bd442e4ca42f00f1b9808a9cb419383cd04ba32ef19322aba7"
}
Loading

0 comments on commit 82fae0e

Please sign in to comment.