Skip to content

Commit

Permalink
build: 将 CI 中 npm 替换为 yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyexing committed Oct 19, 2023
1 parent 6770419 commit 9125490
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm config set registry https://registry.npm.taobao.org/
- run: npm install
- run: npm run ci
- run: yarn
- run: yarn ci
# - name: coverall
# if: success()
# uses: coverallsapp/github-action@master
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: docs-dist
build: |
npm config set registry https://registry.npm.taobao.org/
npm install
npm run docs:build
yarn
yarn docs:build
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm config set registry https://registry.npm.taobao.org/
- run: npm install
- run: npm run ci
- run: yarn
- run: yarn ci

publish-site:
needs: build
Expand All @@ -24,9 +23,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm config set registry https://registry.npm.taobao.org/
- run: npm install
- run: npm run docs:build
- run: yarn
- run: yarn docs:build
- run: |
cd docs-dist
git init
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
"wellknown": "^0.5.0",
"xlsx": "^0.18.5"
},
"tnpm": {
"mode": "npm"
},
"yuyanId": "180020010001251474",
"devDependencies": {
"@antv/l7": "^2.11.0",
Expand Down

0 comments on commit 9125490

Please sign in to comment.