Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Dec 1, 2024
1 parent c4968ce commit f58d38c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 21
- run: npm install
- run: npm run lint
- run: npm run build
cache: pnpm
- run: pnpm install
- run: pnpm run lint
- run: pnpm run build
10 changes: 6 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 21
- run: npm install
- run: npm run docs:build
cache: pnpm
- run: pnpm install
- run: pnpm run docs:build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_DOCS_TOKEN }}
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 21
- run: npm install && npm run build
cache: pnpm
- run: pnpm install && pnpm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 21
cache: pnpm
registry-url: https://registry.npmjs.org/
- run: npm install && npm run build
- run: pnpm install && pnpm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/website
/dist
/docs/.vitepress/cache
/docs/node_modules

/package-lock.json
/pnpm-lock.yaml
Expand Down
1 change: 0 additions & 1 deletion docs/node_modules/klinecharts

This file was deleted.

0 comments on commit f58d38c

Please sign in to comment.