Skip to content

Commit 71c5f31

Browse files
AlexKushnir1AlexKushnir1
AlexKushnir1
authored and
AlexKushnir1
committed
use pnpm in git workflows
1 parent d00561b commit 71c5f31

File tree

3 files changed

+37
-19
lines changed

3 files changed

+37
-19
lines changed

.github/workflows/lint.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ jobs:
88
eslint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
13-
with:
14-
node-version: '16'
15-
cache: 'yarn'
16-
- run: yarn install
17-
- run: yarn lint
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup pnpm
14+
uses: pnpm/[email protected]
15+
with:
16+
version: 9.15.0
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: '20'
21+
cache: 'pnpm'
22+
23+
- run: pnpm install
24+
- run: pnpm lint

.github/workflows/tests-sandbox.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,22 @@ jobs:
99
strategy:
1010
matrix:
1111
platform: [ubuntu-latest, macos-latest]
12-
node-version: [16]
12+
node-version: [20]
1313
runs-on: ${{ matrix.platform }}
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v2
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup pnpm
18+
uses: pnpm/[email protected]
19+
with:
20+
version: 9.15.0
21+
22+
- uses: actions/setup-node@v3
1723
with:
1824
node-version: ${{ matrix.node-version }}
25+
1926
- name: Install dependencies
20-
run: yarn
27+
run: pnpm install
28+
2129
- name: Run tests
22-
run: yarn test:sandbox:ci-with-ignore --fail-fast
30+
run: pnpm test:sandbox:ci-with-ignore --fail-fast

.github/workflows/typedoc-generator.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
main
77

88
env:
9-
NODE_VERSION: 18.x.x
9+
NODE_VERSION: 20.x.x
1010
ENTRY_FILE: 'packages'
1111
CONFIG_PATH: 'tsconfig.base.json'
1212
USES_PNPM: 'true'
@@ -20,21 +20,24 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23+
- name: Setup pnpm
24+
uses: pnpm/[email protected]
25+
with:
26+
version: 9.15.0
27+
2328
- uses: actions/setup-node@v3
2429
with:
2530
node-version: ${{ env.NODE_VERSION }}
26-
27-
- name: Install yarn
28-
run: npm install -g yarn
31+
cache: 'pnpm'
2932

3033
- name: Install dependencies
31-
run: yarn install
34+
run: pnpm install
3235

3336
- name: Build project
34-
run: yarn build
37+
run: pnpm build
3538

3639
- name: Build documentation
37-
run: yarn docs:generate
40+
run: pnpm docs:generate
3841

3942
- name: Deploy to GitHub pages
4043
uses: JamesIves/github-pages-deploy-action@v4

0 commit comments

Comments
 (0)