Skip to content

Commit

Permalink
ci: update workflow config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 16, 2024
1 parent 8e5b708 commit 31bff91
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,38 @@ jobs:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- run: npm install
- run: npm run build
working-directory: core

- run: npm install [email protected] -g
- run: npm install idoc@1 -g

- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Auto Config Loader {{version}}"
menus:
Home: index.html
Apps:
url: https://wangchujiang.com/#/app
target: __blank
Sponsor:
url: https://wangchujiang.com/#/sponsor
target: __blank
footer: |
<a href="https://wangchujiang.com/#/contact" target="_blank">Contact</a> •
<a href="https://wangchujiang.com/#/projects" target="_blank">Projects</a> •
<a href="https://wangchujiang.com/#/sponsor" target="_blank">Sponsor</a> •
<a href="https://wangchujiang.com/#/app" target="_blank">More Apps</a><br /><br />
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}}
EOF
- run: idoc -s "Auto Config Loader {{version}}"
working-directory: core

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -35,11 +35,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down

0 comments on commit 31bff91

Please sign in to comment.