Skip to content

Commit a50b071

Browse files
committed
chore: migrate to pnpm
1 parent 96db9d5 commit a50b071

6 files changed

Lines changed: 421 additions & 353 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v3
17+
- run: corepack enable
18+
- uses: actions/setup-node@v4
1819
with:
19-
node-version: 18
20-
cache: 'yarn'
21-
- run: yarn
20+
node-version: 20
21+
cache: 'pnpm'
22+
- run: pnpm i
2223
- name: Publish to Open VSX Registry
2324
uses: HaaLeo/publish-vscode-extension@v1
2425
with:
2526
pat: ${{ secrets.OPEN_VSX_TOKEN }}
26-
yarn: true
27+
dependencies: false
2728
- name: Publish to Visual Studio Marketplace
2829
uses: HaaLeo/publish-vscode-extension@v1
2930
with:
3031
pat: ${{ secrets.VSCE_TOKEN }}
3132
registryUrl: https://marketplace.visualstudio.com
32-
yarn: true
33+
dependencies: false

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ${{ matrix.platform }}
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v3
18+
- run: corepack enable
19+
- uses: actions/setup-node@v4
1920
with:
20-
node-version: 18
21-
cache: 'yarn'
22-
- name: install dependencies
23-
run: yarn
24-
- name: compile extension
25-
run: yarn compile
21+
node-version: 'lts/*'
22+
cache: 'pnpm'
23+
24+
- run: pnpm i --frozen-lockfile
25+
- run: pnpm compile

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ The extension automatically pulls the [latest config schema](https://github.com/
1212

1313
# Contributing
1414

15-
Following [the official guide](https://code.visualstudio.com/api/get-started/your-first-extension), run `yarn` to install dependencies, `yarn compile` to build your changes and press `F5` to open a new `Extension Development Host` window.
15+
Following [the official guide](https://code.visualstudio.com/api/get-started/your-first-extension), run `pnpm i` to install dependencies, `pnpm compile` to build your changes and press `F5` to open a new `Extension Development Host` window.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
]
8282
},
8383
"scripts": {
84-
"vscode:prepublish": "yarn run compile",
84+
"vscode:prepublish": "pnpm run compile",
8585
"compile": "tsc -p ./",
8686
"watch": "tsc -watch -p ./",
8787
"format": "prettier ./**/*.{json,ts,js} -w --ignore-path .gitignore"
@@ -97,5 +97,6 @@
9797
"@types/vscode": "1.75.0",
9898
"prettier": "3.3.2",
9999
"typescript": "5.5.2"
100-
}
100+
},
101+
"packageManager": "pnpm@9.7.1"
101102
}

0 commit comments

Comments
 (0)