Skip to content

Commit

Permalink
fix: CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Mar 1, 2024
1 parent 6c06879 commit 546b4cf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"commit": true,
"fixed": [],
"linked": [],
"access": "restricted",
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,41 @@ jobs:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: install pnpm
run: npm i pnpm@latest -g
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install
env:
GITHUB_AUTH_TOKEN: ${{secrets.PERSONAL_TOKEN}}
- name: build packages
run: npm run build
- name: create and publish versions
- name: bump versions
uses: changesets/action@v1
id: release
id: changesets
with:
version: npm run bump
commit: "chore: update versions"
title: "chore: update versions"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: zhin-workspace
- name: build packages
run: npm run build
if: ${{ steps.release.outputs.release_created }}
- name: publish packages
if: ${{ steps.release.outputs.release_created }}
run: npm run pub
Expand Down
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
//npm.pkg.github.com/:_authToken=${GITHUB_AUTH_TOKEN}
@icqqjs:registry=https://npm.pkg.github.com
always-auth=true
registry=https://registry.npmmirror.com/

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"lint": "eslint packages --ext .ts",
"lint:fix": "eslint packages --ext .ts --fix",
"format": "prettier packages --write",
"build": "node ./scripts/build.js",
"build": "pnpm -r run build",
"clean": "node ./scripts/clean.js",
"pub": "node ./scripts/publish.js",
"pub": "pnpm -r publish --access public --no-git-checks",
"bump": "pnpm changeset version",
"docs:dev": "vitepress dev docs --port 5566",
"docs:build": "vitepress build docs",
Expand Down

0 comments on commit 546b4cf

Please sign in to comment.