File tree 7 files changed +606
-14
lines changed
7 files changed +606
-14
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/[email protected] /schema.json" ,
3
+ "changelog" : " @changesets/cli/changelog" ,
4
+ "commit" : false ,
5
+ "fixed" : [],
6
+ "linked" : [],
7
+ "access" : " public" ,
8
+ "baseBranch" : " main" ,
9
+ "updateInternalDependencies" : " patch" ,
10
+ "ignore" : []
11
+ }
Original file line number Diff line number Diff line change
1
+ name : pull_request
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ call-test :
9
+ uses : ./.github/workflows/test.yml
Original file line number Diff line number Diff line change
1
+ name : push
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+
7
+ jobs :
8
+ call-test :
9
+ uses : ./.github/workflows/test.yml
10
+ release :
11
+ needs : call-test
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ contents : write
15
+ id-token : write
16
+ pull-requests : write
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-node@v4
20
+ with :
21
+ cache : yarn
22
+
23
+ - run : yarn
24
+
25
+ - name : Create Release Pull Request or Publish to npm
26
+ id : changesets
27
+ uses : changesets/action@v1
28
+ with :
29
+ publish : yarn release
30
+ title : Publish <version>
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ name: test
2
2
3
3
on :
4
4
workflow_call :
5
- pull_request :
6
- branches : [main]
7
- push :
8
- branches : [main]
9
5
10
6
jobs :
11
7
build :
16
12
node-version : [16.x, 18.x, 20.x]
17
13
18
14
steps :
19
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v4
20
16
- name : Use Node.js ${{ matrix.node-version }}
21
- uses : actions/setup-node@v3
17
+ uses : actions/setup-node@v4
22
18
with :
23
19
node-version : ${{ matrix.node-version }}
24
20
cache : yarn
Original file line number Diff line number Diff line change 11
11
"scripts" : {
12
12
"clean" : " rm -rf dist/" ,
13
13
"prepare" : " yarn clean && cp -R src/ dist/" ,
14
- "test" : " jest --bail"
14
+ "test" : " jest --bail" ,
15
+ "release" : " changeset publish"
15
16
},
16
17
"bin" : {
17
18
"jscodeshift" : " ./bin/jscodeshift.js"
53
54
},
54
55
"devDependencies" : {
55
56
"@babel/eslint-parser" : " ^7.24.7" ,
57
+ "@changesets/cli" : " ^2.27.8" ,
56
58
"eslint" : " 8.56.0" ,
57
59
"jest" : " ^29.7.0" ,
58
60
"jsdoc" : " ^4.0.3"
You can’t perform that action at this time.
0 commit comments