Skip to content

Commit 62b4a1c

Browse files
committed
build: update workflows
1 parent 5844c08 commit 62b4a1c

3 files changed

Lines changed: 25 additions & 17 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ jobs:
1010
if: "!contains(github.event.head_commit.message, '[skip docs]')"
1111
steps:
1212
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
13+
- uses: pnpm/action-setup@v2
1414
with:
1515
node-version: "18.x"
16-
- run: yarn install --frozen-lockfile
17-
- run: yarn build-docs
16+
run_install: |
17+
- recursive: true
18+
args: [--frozen-lockfile, --strict-peer-dependencies]
19+
- run: pnpm build-docs
1820
- uses: peaceiris/actions-gh-pages@v3
1921
with:
2022
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pull_requests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ name: Pull Requests
22

33
on:
44
pull_request:
5-
branches: [master, develop]
5+
branches: [ master, develop ]
66
jobs:
77
build:
88
runs-on: ubuntu-latest
99
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
12+
- uses: pnpm/action-setup@v2
1313
with:
1414
node-version: "18.x"
15-
- run: yarn install --frozen-lockfile
16-
- run: yarn build
17-
- run: yarn test
15+
run_install: |
16+
- recursive: true
17+
args: [--frozen-lockfile, --strict-peer-dependencies]
18+
- run: pnpm build
19+
- run: pnpm test

.github/workflows/release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,36 @@ name: Test & Build
22

33
on:
44
push:
5-
branches: [ master, develop, feat/*, fix/* ]
5+
branches: [master, develop, feat/*, fix/*]
66
jobs:
77
test:
88
runs-on: ubuntu-latest
99
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
12+
- uses: pnpm/action-setup@v2
1313
with:
1414
node-version: "18.x"
15-
- run: yarn install --frozen-lockfile
16-
- run: yarn test
15+
run_install: |
16+
- recursive: true
17+
args: [--frozen-lockfile, --strict-peer-dependencies]
18+
- run: pnpm test
1719
if: "!contains(github.event.head_commit.message, '[skip test]')"
1820
build:
1921
runs-on: ubuntu-latest
2022
if: "!contains(github.event.head_commit.message, '[skip ci]')"
2123
needs: test
2224
steps:
2325
- uses: actions/checkout@v3
24-
- uses: actions/setup-node@v3
26+
- uses: pnpm/action-setup@v2
2527
with:
2628
node-version: "18.x"
27-
- run: yarn install --frozen-lockfile
28-
- run: yarn build
29-
- run: cd ./dist && yarn pack --filename=../package.tgz
30-
- run: yarn semantic-release
29+
run_install: |
30+
- recursive: true
31+
args: [--frozen-lockfile, --strict-peer-dependencies]
32+
- run: pnpm build
33+
- run: cd ./dist && pnpm pack --filename=../package.tgz
34+
- run: pnpm semantic-release
3135
if: "!contains(github.event.head_commit.message, '[skip publish]')"
3236
env:
3337
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"

0 commit comments

Comments
 (0)