Skip to content

Commit 778bf64

Browse files
authored
Simplify with npm (#112)
1 parent 4c58fa8 commit 778bf64

File tree

7 files changed

+9328
-5973
lines changed

7 files changed

+9328
-5973
lines changed

.github/actions/setup-env/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ runs:
55
using: "composite"
66
steps:
77
- name: "Setup :: Node"
8-
uses: actions/setup-node@v3
8+
uses: actions/setup-node@v4
99
with:
1010
node-version: 22
11-
cache: "yarn"
11+
cache: "npm"
1212

1313
- name: "Bootstrap"
1414
shell: bash
1515
run: |
16-
yarn install
16+
npm install
1717
18-
- name: "Check :: yarn.lock"
18+
- name: "Check :: lock"
1919
shell: bash
2020
run: |
21-
git diff yarn.lock;
22-
[ "0" == "$(git diff yarn.lock | wc -l | tr -d ' ')" ]
21+
git diff package-lock.json;
22+
[ "0" == "$(git diff package-lock.json | wc -l | tr -d ' ')" ]
2323
2424
- name: "Check :: format"
2525
shell: bash
2626
run: |
27-
yarn format:check
27+
npm run format:check

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
echo "version=$(node -e "console.log(require('./package.json').version);")" >> $GITHUB_OUTPUT
3232
3333
- name: "Build and Pack"
34-
run: yarn build:prod && yarn pack:extension
34+
run: npm run build:prod && npm run pack:extension
3535

3636
- name: "Test"
37-
run: yarn test
37+
run: npm run test
3838

3939
- name: "Upload vsix (Ubuntu only)"
4040
if: matrix.os == 'ubuntu-latest'

.github/workflows/less-is-more.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: ./.github/actions/setup-env
2020

2121
- name: "Build and Pack"
22-
run: yarn build:prod && yarn pack:extension
22+
run: npm run build:prod && npm run pack:extension
2323

2424
- name: "Less is more"
2525
uses: caponetto/less-is-more@v1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: ./.github/actions/setup-env
2525

2626
- name: "Build and Pack"
27-
run: yarn build:prod && yarn pack:extension
27+
run: npm run build:prod && npm run pack:extension
2828

2929
- name: "Publish :: VS Code Marketplace"
3030
run: |

0 commit comments

Comments
 (0)