Skip to content

Commit f52007e

Browse files
committed
Rework the workflows
1 parent 9232092 commit f52007e

3 files changed

Lines changed: 33 additions & 16 deletions

File tree

.github/workflows/CI.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,24 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [10.x, 12.x]
12+
node-version: [24.x]
1313

1414
steps:
1515
- uses: actions/checkout@v1
16+
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 10
21+
1622
- name: Use Node.js ${{ matrix.node-version }}
1723
uses: actions/setup-node@v1
1824
with:
1925
node-version: ${{ matrix.node-version }}
20-
- name: yarn install and test
26+
27+
- name: pnpm install and test
2128
run: |
22-
yarn
23-
yarn test
29+
pnpm install
30+
pnpm test
2431
env:
2532
CI: true

.github/workflows/docs.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,35 @@ name: github pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths:
8-
- side/**/*.js
9-
- side/package.json
8+
- docusaurus/**/*
9+
- docusaurus/package.json
1010
jobs:
1111
build-deploy:
1212
runs-on: ubuntu-18.04
1313
steps:
1414
- uses: actions/checkout@v1
1515

16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 10
20+
1621
- name: Use Node.js
1722
uses: actions/setup-node@v1
1823
with:
1924
node-version: 10.x
2025

21-
- name: yarn install and test
26+
- name: pnpm install and test
2227
run: |
2328
cd side
24-
yarn
25-
yarn build
29+
pnpm install
30+
pnpm build
2631
2732
- name: Deploy
2833
uses: peaceiris/actions-gh-pages@v2
2934
env:
3035
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
3136
PUBLISH_BRANCH: gh-pages
32-
PUBLISH_DIR: ./side/build
37+
PUBLISH_DIR: ./docusaurus/build

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,29 @@ name: release
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
build-deploy:
1010
runs-on: ubuntu-18.04
1111
steps:
1212
- uses: actions/checkout@v1
1313

14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
version: 10
18+
1419
- name: Use Node.js
1520
uses: actions/setup-node@v1
1621
with:
1722
node-version: 10.x
1823

19-
- name: yarn install, test and build
24+
- name: pnpm install, test and build
2025
run: |
21-
yarn
22-
yarn test
23-
yarn build:prod
26+
pnpm install
27+
pnpm test
28+
pnpm release
2429
- name: Semantic Release
2530
uses: cycjimmy/semantic-release-action@v2
2631
env:

0 commit comments

Comments
 (0)