Skip to content

Commit

Permalink
feat: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Nov 5, 2024
1 parent 91242b2 commit 714bf57
Show file tree
Hide file tree
Showing 7 changed files with 866 additions and 32 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
19 changes: 19 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "umijs/tnf"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"updateInternalDependents": "always"
},
"ignore": ["@examples/normal"]
}
40 changes: 40 additions & 0 deletions .github/workflows/changeset-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Changesets

on:
push:
branches:
- master

jobs:
release:
name: upgrade-version
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x

- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm
uses: pnpm/[email protected]
with:
run_install: true

- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0-alpha.5",
"scripts": {
"build": "father build",
"changeset": "tsx scripts/changeset.ts",
"check": "prettier --check .",
"ci": "npm run check && npm run build && npm run test --run && npm run test:e2e && father doctor",
"dev": "father dev",
Expand Down Expand Up @@ -53,9 +54,13 @@
"react-dom": "19.0.0-rc-02c0e824-20241028",
"spdy": "^4.0.2",
"yargs-parser": "^21.1.1",
"zod": "^3.23.8"
"zod": "^3.23.8",
"zx": "^7.2.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@manypkg/get-packages": "^2.2.2",
"@playwright/test": "^1.42.1",
"@total-typescript/tsconfig": "^1.0.4",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
Expand Down
Loading

0 comments on commit 714bf57

Please sign in to comment.