File tree 6 files changed +1359
-521
lines changed
6 files changed +1359
-521
lines changed Original file line number Diff line number Diff line change
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by ` @changesets/cli ` , a build tool that works
4
+ with multi-package repos, or single-package repos to help you version and publish your code. You can
5
+ find the full documentation for it [ in our repository] ( https://github.com/changesets/changesets )
6
+
7
+ We have a quick list of common questions to get you started engaging with this project in
8
+ [ our documentation] ( https://github.com/changesets/changesets/blob/main/docs/common-questions.md )
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://unpkg.com/@changesets/config/schema.json" ,
3
+ "changelog" : [
4
+ " @changesets/changelog-github" ,
5
+ {
6
+ "repo" : " un-ts/patch-package"
7
+ }
8
+ ],
9
+ "commit" : false ,
10
+ "fixed" : [],
11
+ "linked" : [],
12
+ "access" : " public" ,
13
+ "baseBranch" : " fork-release" ,
14
+ "updateInternalDependencies" : " patch" ,
15
+ "ignore" : []
16
+ }
Original file line number Diff line number Diff line change 1
1
on :
2
2
pull_request :
3
3
push :
4
- branches : [master]
4
+ branches :
5
+ - master
5
6
name : Test
6
7
jobs :
7
8
test :
8
9
name : ${{ matrix.os }} on node ${{ matrix.node }}
9
10
runs-on : ${{ matrix.os }}
10
11
strategy :
11
12
matrix :
12
- os : [ubuntu-latest]
13
- node : [14, 16, 18]
13
+ os :
14
+ - ubuntu-latest
15
+ node :
16
+ - 14
17
+ - 16
18
+ - 18
19
+ - 20
14
20
steps :
15
- - uses : actions/checkout@v1
16
- - uses : actions/setup-node@v1
21
+ - uses : actions/checkout@v4
22
+ - uses : actions/setup-node@v4
17
23
with :
18
24
node-version : ${{ matrix.node }}
19
- - run : yarn install
25
+ cache : yarn
26
+ - run : yarn --immutable
20
27
-
run :
git config --global user.email "[email protected] "
21
28
- run : git config --global user.name "patch-package"
22
- - run : yarn run test
29
+ - run : yarn test
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - fork-release
7
+
8
+ jobs :
9
+ release :
10
+ name : Release
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout Repo
14
+ uses : actions/checkout@v4
15
+ with :
16
+ # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17
+ fetch-depth : 0
18
+
19
+ - name : Enable Corepack
20
+ run : corepack enable
21
+
22
+ - name : Setup Node.js LTS
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : lts/*
26
+ cache : yarn
27
+
28
+ - name : Install Dependencies
29
+ run : yarn --immutable
30
+
31
+ - name : Create Release Pull Request or Publish to npm
32
+ id : changesets
33
+ uses : changesets/action@v1
34
+ with :
35
+ commit : " chore: release @unts/patch-package"
36
+ title : " chore: release @unts/patch-package"
37
+ publish : yarn changeset publish
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
40
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " patch-package" ,
2
+ "name" : " @unts/ patch-package" ,
3
3
"version" : " 8.0.0" ,
4
4
"description" : " Fix broken node modules with no fuss" ,
5
5
"main" : " dist/index.js" ,
6
- "repository" : " github:ds300/ patch-package" ,
6
+ "repository" : " git+https://github.com/un-ts/ patch-package.git " ,
7
7
"author" : " David Sheldrick" ,
8
+ "maintainers" : [
9
+ " JounQin (https://www.1stG.me) <[email protected] >"
10
+ ],
8
11
"license" : " MIT" ,
9
12
"engines" : {
10
13
"node" : " >=14" ,
11
14
"npm" : " >5"
12
15
},
13
- "bin" : " ./index.js" ,
16
+ "bin" : {
17
+ "patch-package" : " ./index.js"
18
+ },
14
19
"scripts" : {
15
20
"prepublishOnly" : " yarn run clean && yarn run build" ,
16
21
"build" : " tsc --project tsconfig.build.json" ,
48
53
]
49
54
},
50
55
"devDependencies" : {
56
+ "@changesets/changelog-github" : " ^0.5.0" ,
57
+ "@changesets/cli" : " ^2.27.1" ,
51
58
"@types/app-root-path" : " ^1.2.4" ,
52
59
"@types/cross-spawn" : " ^6.0.0" ,
53
60
"@types/fs-extra" : " ^9.0.0" ,
You can’t perform that action at this time.
0 commit comments