Skip to content

Commit f131875

Browse files
committed
feat(main): ✨ moved to pnpm from yarn
1 parent d331a71 commit f131875

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name: Release
2-
3-
# Run the workflow when a Pull Request is opened or when changes are pushed to master
42
on:
53
push:
64
branches:
@@ -16,21 +14,22 @@ jobs:
1614
name: Node.js ${{ matrix.node }}
1715

1816
steps:
19-
- uses: actions/checkout@v3
20-
17+
- uses: actions/checkout@v2
18+
- uses: pnpm/action-setup@v2.0.1
19+
with:
20+
version: 6.24.4
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
cache: "yarn"
26-
- name: Install yarn latest
27-
run: yarn set version berry && yarn set version latest
25+
cache: "pnpm"
2826
- name: Install deps
29-
run: yarn
27+
run: pnpm install
3028
- name: Build
31-
run: yarn build
29+
run: pnpm build
30+
3231
- name: Release
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3534
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
run: yarn run semantic-release
35+
run: pnpm semantic-release

.github/workflows/test.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,28 @@ on:
99
jobs:
1010
runner-job:
1111
runs-on: ubuntu-latest
12+
env:
13+
NODE_ENV: production
14+
1215
strategy:
1316
matrix:
14-
node-version: [14.x, 16.x, 18.x]
17+
node-version: [16.x, 18.x, 19.x]
1518

1619
name: Node.js ${{ matrix.node }}
1720

1821
steps:
19-
- uses: actions/checkout@v3
20-
22+
- uses: actions/checkout@v2
23+
- uses: pnpm/action-setup@v2.0.1
24+
with:
25+
version: 7.20.0
2126
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v2
2328
with:
2429
node-version: ${{ matrix.node-version }}
25-
cache: "yarn"
26-
- name: Install yarn latest
27-
run: yarn set version berry && yarn set version latest
30+
cache: "pnpm"
2831
- name: Install deps
29-
run: yarn
32+
run: pnpm install
3033
- name: Linting
31-
run: yarn lint
34+
run: pnpm lint
3235
- name: Test
33-
run: yarn test
36+
run: pnpm test

0 commit comments

Comments
 (0)