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 4d3de03 commit 1a2b4ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ 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
Expand All @@ -32,9 +32,15 @@ jobs:
Rewrite: https://jaywcjlove.github.io/rehype-rewrite/
Video: https://jaywcjlove.github.io/rehype-video/
Sponsor: https://jaywcjlove.github.io/#/sponsor
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: npm install idoc@1.26.6 -g
- run: npm install idoc@1 -g
- run: idoc
- run: cp -rp ./coverage/lcov-report dist

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
build-deploy:
runs-on: ubuntu-latest
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

- run: npm install
- run: npm run build
Expand Down

0 comments on commit 1a2b4ad

Please sign in to comment.