Skip to content

Commit 19ff6ea

Browse files
chore: Update workflow to use pnpm
1 parent 755b1ee commit 19ff6ea

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@ jobs:
66
steps:
77
- uses: actions/checkout@v3
88
- uses: actions/setup-node@v3
9+
- uses: pnpm/action-setup@v2
910
with:
10-
node-version: 18
11-
- run: npm ci
12-
- run: npm run format:check
13-
- run: npm run lint
14-
- run: npm run test
15-
- run: npm run compile -- --noEmit
11+
version: 8.4.0
12+
- run: pnpm install --frozen-lockfile
13+
- run: pnpm format:check
14+
- run: pnpm lint
15+
- run: pnpm test
16+
- run: pnpm compile -- --noEmit
1617
release:
1718
needs: test
1819
runs-on: ubuntu-latest
1920
steps:
2021
- uses: actions/checkout@v3
2122
- uses: actions/setup-node@v3
23+
- uses: pnpm/action-setup@v2
2224
with:
23-
node-version: 18
24-
- run: npm ci
25-
- run: npx semantic-release
25+
version: 8.4.0
26+
- run: pnpm install --frozen-lockfile
27+
- run: pnpx semantic-release
2628
env:
2729
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2830
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"compile": "tsc",
2727
"watch": "tsc -watch",
2828
"lint": "eslint src --ext ts",
29-
"format:check": "prettier --check .",
30-
"format": "prettier --write .",
29+
"format:check": "prettier --check",
30+
"format": "prettier --write",
3131
"test": "jest",
3232
"test:watch": "jest --watch"
3333
},

0 commit comments

Comments
 (0)