Skip to content

Commit 28d8797

Browse files
committed
Rework the workflows
- Still it is not used
1 parent 9232092 commit 28d8797

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- name: yarn install and test
20+
- name: pnpm install and test
2121
run: |
22-
yarn
23-
yarn test
22+
pnpm install
23+
pnpm test
2424
env:
2525
CI: true

.github/workflows/docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ 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
@@ -18,15 +18,15 @@ jobs:
1818
with:
1919
node-version: 10.x
2020

21-
- name: yarn install and test
21+
- name: pnpm install and test
2222
run: |
2323
cd side
24-
yarn
25-
yarn build
24+
pnpm install
25+
pnpm build
2626
2727
- name: Deploy
2828
uses: peaceiris/actions-gh-pages@v2
2929
env:
3030
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
3131
PUBLISH_BRANCH: gh-pages
32-
PUBLISH_DIR: ./side/build
32+
PUBLISH_DIR: ./docusaurus/build

.github/workflows/release.yml

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

88
jobs:
99
build-deploy:
@@ -16,11 +16,11 @@ jobs:
1616
with:
1717
node-version: 10.x
1818

19-
- name: yarn install, test and build
19+
- name: pnpm install, test and build
2020
run: |
21-
yarn
22-
yarn test
23-
yarn build:prod
21+
pnpm install
22+
pnpm test
23+
pnpm release
2424
- name: Semantic Release
2525
uses: cycjimmy/semantic-release-action@v2
2626
env:

0 commit comments

Comments
 (0)