Skip to content

Commit 6515910

Browse files
switch to npm
1 parent af3bb9c commit 6515910

File tree

7 files changed

+3395
-2550
lines changed

7 files changed

+3395
-2550
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
uses: actions/setup-node@v4
1515
with:
1616
node-version: 20.x
17-
cache: yarn
18-
cache-dependency-path: yarn.lock
17+
cache: npm
18+
cache-dependency-path: package-lock.json
1919
- name: Install and build
2020
run: |
21-
yarn --frozen-lockfile
22-
yarn compile
21+
npm ci
22+
npm run compile
2323
env:
2424
CI: true
2525
- name: Test
26-
run: yarn test
26+
run: npm test
2727
if: runner.os != 'Linux'
2828
- name: Test on Linux
29-
run: xvfb-run -a yarn test
29+
run: xvfb-run -a npm test
3030
if: runner.os == 'Linux'
3131
- name: Lint
32-
run: yarn lint
32+
run: npm run lint

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ jobs:
1818
cache: yarn
1919
cache-dependency-path: yarn.lock
2020
- name: Install and build
21-
run: yarn --frozen-lockfile
21+
run: npm ci
2222
env:
2323
CI: true
2424
- name: Build
25-
run: yarn compile
25+
run: npm run compile
2626
env:
2727
CI: true
2828
- name: Build web
29-
run: yarn package-web
29+
run: npm run package-web
3030
env:
3131
CI: true
3232
- name: Publish with vsce
3333
run: |
34-
yarn global add @vscode/vsce
34+
npm install --global @vscode/vsce
3535
# Try to publish and ignore any errors (that version was already published)
3636
vsce publish -p $VSCE_TOKEN || true
3737
env:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dist/
22
node_modules/
33
out/
4-
package-lock.json
54
.vscode-test/
65
*.vsix
6+
yarn.lock

0 commit comments

Comments
 (0)