Skip to content

Commit

Permalink
chore(workflow): use changeset CLI as release tools (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Apr 4, 2024
1 parent 29842ba commit e852fb5
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 1,632 deletions.
8 changes: 0 additions & 8 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@
## Related Links

<!--- Provide links of related issues or pages -->

## Checklist

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->

- [ ] I have added changeset via `pnpm run change`.
- [ ] I have updated the documentation.
- [ ] I have added tests to cover my changes.
2 changes: 1 addition & 1 deletion .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
version: ${{ github.event.inputs.version || 'latest' }}
versionNumber: 'auto'
type: 'pull request'
tools: 'modern'
tools: 'changeset'
env:
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
version: 'next'
type: 'release'
branch: ''
tools: 'modern'
tools: 'changeset'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
version: ${{ github.event.inputs.version }}
branch: ${{ github.event.inputs.branch }}
type: 'release'
tools: 'modern'
tools: 'changeset'
env:
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
5 changes: 0 additions & 5 deletions modern.config.ts

This file was deleted.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@
},
"scripts": {
"build": "cross-env NX_DAEMON=false nx run-many -t build --exclude @examples/* @scripts/* @e2e/* --parallel=10",
"bump": "modern bump",
"change": "modern change",
"change": "changeset",
"changeset": "changeset",
"check-spell": "npx cspell",
"check-changeset": "cd ./scripts/check-changeset && pnpm start",
"check-dependency-version": "check-dependency-version-consistency .",
"dev:doc": "cd document && pnpm run dev",
"e2e": "cd ./e2e && cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm test",
"gen-release-note": "modern gen-release-note",
"lint": "biome lint . --diagnostic-level=error",
"new": "modern new",
"pre": "modern pre",
"prepare": "pnpm run build && husky install",
"release": "modern release",
"test": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm run ut",
"test:all": "pnpm run test && pnpm run e2e",
"sort-package-json": "npx sort-package-json \"packages/*/package.json\"",
Expand All @@ -37,8 +33,8 @@
},
"devDependencies": {
"@biomejs/biome": "1.5.1",
"@changesets/cli": "^2.27.1",
"@modern-js/module-tools": "^2.44.0",
"@modern-js/monorepo-tools": "^2.44.0",
"@rsdoctor/tsconfig": "workspace:*",
"@scripts/test-helper": "workspace:*",
"check-dependency-version-consistency": "^4.1.0",
Expand Down
94 changes: 0 additions & 94 deletions packages/cli/CHANGELOG.md

This file was deleted.

72 changes: 0 additions & 72 deletions packages/client/CHANGELOG.md

This file was deleted.

90 changes: 0 additions & 90 deletions packages/components/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit e852fb5

Please sign in to comment.