@@ -17,18 +17,20 @@ jobs:
1717 steps :
1818 - uses : actions/checkout@v6
1919
20+ - uses : pnpm/action-setup@v4
21+
2022 - uses : actions/setup-node@v6
2123 with :
2224 node-version : " 22"
23- cache : " yarn "
25+ cache : " pnpm "
2426
25- - run : yarn
27+ - run : pnpm install
2628
27- - run : yarn prettier --check .
29+ - run : pnpm prettier --check .
2830
29- - run : yarn lint
31+ - run : pnpm lint
3032
31- - run : yarn build
33+ - run : pnpm build
3234
3335 test-unit :
3436 name : Unit Test (Electron ${{ matrix.electron-version }})
@@ -42,12 +44,14 @@ jobs:
4244 steps :
4345 - uses : actions/checkout@v6
4446
47+ - uses : pnpm/action-setup@v4
48+
4549 - uses : actions/setup-node@v6
4650 with :
4751 node-version : " 22"
48- cache : " yarn "
52+ cache : " pnpm "
4953
50- - run : yarn
54+ - run : pnpm install
5155
5256 - name : Run tests with Electron ${{ matrix.electron-version }}
5357 run : ./scripts/test-electron.sh ${{ matrix.electron-version }}
@@ -65,17 +69,19 @@ jobs:
6569 steps :
6670 - uses : actions/checkout@v6
6771
72+ - uses : pnpm/action-setup@v4
73+
6874 - uses : actions/setup-node@v6
6975 with :
7076 node-version : " 22"
71- cache : " yarn "
77+ cache : " pnpm "
7278
73- - run : yarn
79+ - run : pnpm install
7480
75- - run : yarn build
81+ - run : pnpm build
7682
7783 - name : Run integration tests on VS Code ${{ matrix.vscode-version }}
78- run : xvfb-run -a yarn test:integration --label "VS Code ${{ matrix.vscode-version }}"
84+ run : xvfb-run -a pnpm test:integration --label "VS Code ${{ matrix.vscode-version }}"
7985
8086 package :
8187 name : Package
@@ -84,15 +90,15 @@ jobs:
8490 steps :
8591 - uses : actions/checkout@v6
8692
93+ - uses : pnpm/action-setup@v4
94+
8795 - uses : actions/setup-node@v6
8896 with :
8997 node-version : " 22"
90- cache : " yarn "
98+ cache : " pnpm "
9199
92100 - name : Install dependencies
93- run : |
94- yarn
95- npm install -g @vscode/vsce
101+ run : pnpm install
96102
97103 - name : Get version from package.json
98104 id : version
@@ -111,7 +117,7 @@ jobs:
111117 echo "packageName=$PACKAGE_NAME" >> $GITHUB_OUTPUT
112118
113119 - name : Package extension
114- run : vsce package --out "${{ steps.setup.outputs.packageName }}"
120+ run : pnpm vsce package --no-dependencies --out "${{ steps.setup.outputs.packageName }}"
115121
116122 - name : Upload artifact (PR)
117123 if : github.event_name == 'pull_request'
0 commit comments