Skip to content

Commit

Permalink
replace npm by pnpm, replace vuepress by vitepress
Browse files Browse the repository at this point in the history
  • Loading branch information
machsix committed May 8, 2024
1 parent 72b0554 commit d479204
Show file tree
Hide file tree
Showing 34 changed files with 20,223 additions and 24,714 deletions.
54 changes: 33 additions & 21 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
name: workflow
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
env:
TRAVIS_COMMIT_MESSAGE: ${{github.event.commits[0].message}}
jobs:
ci:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
fetch-depth: '0'
- uses: actions/setup-node@v3
version: 9
- name: Install Node.js
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
node-version: 20
cache: 'pnpm'
- name: Install npm packages
run: pnpm install
- name: Build
run: |
npm install
npm run check
npm run build
pnpm run check
pnpm run build
- name: Artiface Archive
uses: actions/upload-artifact@v2
with:
Expand All @@ -35,30 +40,37 @@ jobs:
env:
CI: 'true'
with:
args: npm test
args: pnpm test
doc:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
fetch-depth: '0'
- uses: actions/setup-node@v3
version: 9
- name: Install Node.js
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
node-version: 20
cache: 'pnpm'
- name: Install npm packages
run: pnpm install
- name: Build
run: |
npm install
pnpm run check
pnpm run build
- name: Build documentation
run: npm run docs:publish
run: pnpm run docs:publish
- name: Deploy to Github Pages
if: ${{ github.event_name == 'push' && success() }}
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs/.vuepress/dist
build_dir: docs/.vitepress/dist
keep_history: true
commit_message: ${{ format('Commit sha {0}', github.sha)}}
env:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ typings/
# vuepress build output
docs/.vuepress/dist

# vitepress
docs/.vitepress/dist
docs/.vitepress/cache

# Serverless directories
.serverless/

Expand Down
Loading

0 comments on commit d479204

Please sign in to comment.