File tree 8 files changed +628
-115
lines changed
8 files changed +628
-115
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/changelog-github" ,
4
+ "commit" : false ,
5
+ "fixed" : [],
6
+ "linked" : [],
7
+ "access" : " public" ,
8
+ "baseBranch" : " master" ,
9
+ "updateInternalDependencies" : " patch" ,
10
+ "ignore" : []
11
+ }
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
- name : Lint
17
- uses : actions/setup-node@v3
17
+ uses : actions/setup-node@v4
18
18
with :
19
19
node-version : 14.x
20
- - run : npm install
21
- - run : npm run lint
20
+ - run : yarn --frozen-lockfile
21
+ - run : yarn lint
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ concurrency :
9
+ group : ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress : true
11
+
12
+ jobs :
13
+ release :
14
+ name : Release
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout Repo
18
+ uses : actions/checkout@v4
19
+ with :
20
+ # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
21
+ fetch-depth : 0
22
+
23
+ - name : Setup Node.js LTS
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : lts/*
27
+ cache : yarn
28
+
29
+ - name : Install Dependencies
30
+ run : yarn --frozen-lockfile
31
+
32
+ - name : Create Release Pull Request or Publish to npm
33
+ id : changesets
34
+ uses : changesets/action@v1
35
+ with :
36
+ commit : ' chore: release simple-git-hooks'
37
+ title : ' chore: release simple-git-hooks'
38
+ publish : yarn release
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
- name : Lint
17
- uses : actions/setup-node@v3
17
+ uses : actions/setup-node@v4
18
18
with :
19
19
node-version : 14.x
20
- - run : npm install
21
- - run : npm run test
20
+ - run : yarn --frozen-lockfile
21
+ - run : yarn test
File renamed without changes.
Original file line number Diff line number Diff line change 5
5
"author" :
" Mikhail Gorbunov <[email protected] >" ,
6
6
"main" : " simple-git-hooks.js" ,
7
7
"bin" : " ./cli.js" ,
8
+ "packageManager" :
" [email protected] " ,
9
+ "files" : [
10
+ " cli.js" ,
11
+ " postinstall.js" ,
12
+ " simple-git-hooks.js" ,
13
+ " uninstall.js"
14
+ ],
8
15
"scripts" : {
9
16
"postinstall" : " node ./postinstall.js" ,
10
17
"lint" : " eslint *.js" ,
11
18
"test" : " jest" ,
12
- "publish" : " publish" ,
13
- "create-publish-dist" : " clean-publish --no-publish" ,
19
+ "release" : " clean-pkg-json && changeset publish" ,
14
20
"uninstall" : " node ./uninstall.js"
15
21
},
16
22
"keywords" : [
29
35
"lint-staged" : {
30
36
"*.js" : " eslint"
31
37
},
32
- "clean-publish" : {
33
- "files" : [
34
- " LICENSE.txt" ,
35
- " .gitignore" ,
36
- " simple-git-hooks.test.js" ,
37
- " _tests" ,
38
- " .github" ,
39
- " .idea" ,
40
- " .vscode" ,
41
- " .npmignore" ,
42
- " changelog.md"
43
- ],
44
- "packageManager" : " npm"
45
- },
46
38
"simple-git-hooks" : {
47
39
"pre-commit" : " yarn lint"
48
40
},
49
41
"devDependencies" : {
50
- "clean-publish" : " ^4.2.0" ,
42
+ "@changesets/changelog-github" : " ^0.5.1" ,
43
+ "@changesets/cli" : " ^2.28.1" ,
44
+ "clean-pkg-json" : " ^1.2.1" ,
51
45
"eslint" : " ^7.19.0" ,
52
46
"jest" : " ^26.6.3" ,
53
47
"lint-staged" : " ^10.5.4" ,
54
48
"lodash.isequal" : " ^4.5.0" ,
55
- "simple-git-hooks" : " ^2.11.0 "
49
+ "simple-git-hooks" : " link:. "
56
50
}
57
51
}
You can’t perform that action at this time.
0 commit comments