Skip to content

Commit 2d9c82c

Browse files
committed
remove remaining npm references
1 parent 5b1d22b commit 2d9c82c

7 files changed

+90
-20
lines changed

.github/workflows/archive-vscode-artifacts.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,18 @@ jobs:
1919
- name: Setup antlr4
2020
uses: ./.github/actions/setup-antlr4
2121

22-
- name: Install dependencies with frozen lock file and generate parser
23-
run: npm ci
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: 'pnpm'
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Install dependencies with frozen lock file
33+
run: pnpm install --frozen-lockfile
2434

2535
- name: Build project
2636
env:

.github/workflows/benchmark.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ jobs:
1616
- name: Setup antlr4
1717
uses: ./.github/actions/setup-antlr4
1818

19-
- name: Install dependencies with frozen lock file and generate parser
20-
run: npm ci
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Setup node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: 'pnpm'
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install dependencies with frozen lock file
30+
run: pnpm install --frozen-lockfile
2131

2232
- name: Build project
2333
env:

.github/workflows/ci.yaml

+37-7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@ jobs:
2020
- name: Setup antlr4
2121
uses: ./.github/actions/setup-antlr4
2222

23-
- name: Install dependencies with frozen lock file and generate parser
24-
run: npm ci
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Setup node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: 'pnpm'
31+
registry-url: 'https://registry.npmjs.org'
32+
33+
- name: Install dependencies with frozen lock file
34+
run: pnpm install --frozen-lockfile
2535

2636
- name: Build project
2737
env:
@@ -45,13 +55,23 @@ jobs:
4555
- name: Setup antlr4
4656
uses: ./.github/actions/setup-antlr4
4757

48-
- name: Install dependencies with frozen lock file and generate parser
49-
run: npm ci
58+
- name: Setup pnpm
59+
uses: pnpm/action-setup@v4
60+
61+
- name: Setup node.js
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: 20
65+
cache: 'pnpm'
66+
registry-url: 'https://registry.npmjs.org'
67+
68+
- name: Install dependencies with frozen lock file
69+
run: pnpm install --frozen-lockfile
5070

5171
- name: Builds and run tests
5272
# Tests with the same flags that VSCode does
5373
run: |
54-
npm test
74+
pnpm test
5575
5676
e2e-test:
5777
name: E2E tests
@@ -63,8 +83,18 @@ jobs:
6383
- name: Setup antlr4
6484
uses: ./.github/actions/setup-antlr4
6585

66-
- name: Install dependencies
67-
run: npm ci
86+
- name: Setup pnpm
87+
uses: pnpm/action-setup@v4
88+
89+
- name: Setup node.js
90+
uses: actions/setup-node@v4
91+
with:
92+
node-version: 20
93+
cache: 'pnpm'
94+
registry-url: 'https://registry.npmjs.org'
95+
96+
- name: Install dependencies with frozen lock file
97+
run: pnpm install --frozen-lockfile
6898

6999
- name: Build project
70100
run: pnpm build

.github/workflows/deploy-demo.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,18 @@ jobs:
3939
- name: Setup antlr4
4040
uses: ./.github/actions/setup-antlr4
4141

42-
- name: Install dependencies with frozen lock file and generate parser
43-
run: npm ci
42+
- name: Setup pnpm
43+
uses: pnpm/action-setup@v4
44+
45+
- name: Setup node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: 20
49+
cache: 'pnpm'
50+
registry-url: 'https://registry.npmjs.org'
51+
52+
- name: Install dependencies with frozen lock file
53+
run: pnpm install --frozen-lockfile
4454

4555
- name: Build project
4656
run: pnpm build

.github/workflows/formatting-integrity-check.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,18 @@ jobs:
2121
- name: Setup antlr4
2222
uses: ./.github/actions/setup-antlr4
2323

24-
- name: Install dependencies with frozen lock file and generate parser
25-
run: npm ci
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Setup node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: 'pnpm'
32+
registry-url: 'https://registry.npmjs.org'
33+
34+
- name: Install dependencies with frozen lock file
35+
run: pnpm install --frozen-lockfile
2636

2737
- name: Build Project
2838
run: pnpm build

.github/workflows/publish-npm-packages.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- name: Setup antlr4
3131
uses: ./.github/actions/setup-antlr4
3232

33-
- name: Install dependencies with frozen lock file and generate parser
34-
run: npm ci
33+
- name: Install dependencies with frozen lock file
34+
run: pnpm install --frozen-lockfile
3535

3636
- name: Build and release canary package to npm
3737
run: node ./release-canary.js
@@ -59,8 +59,8 @@ jobs:
5959
- name: Setup antlr4
6060
uses: ./.github/actions/setup-antlr4
6161

62-
- name: Install dependencies with frozen lock file and generate parser
63-
run: npm ci
62+
- name: Install dependencies with frozen lock file
63+
run: pnpm install --frozen-lockfile
6464

6565
- name: Create Release Pull Request or Publish to npm
6666
id: changesets

.github/workflows/publish-vscode-extension.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: ./.github/actions/setup-antlr4
3535

3636
- name: Install dependencies with frozen lock file
37-
run: npm ci
37+
run: pnpm install --frozen-lockfile
3838

3939
- name: Build all packages
4040
run: pnpm build

0 commit comments

Comments
 (0)