File tree 4 files changed +3508
-290
lines changed
4 files changed +3508
-290
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,17 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - " v* "
5
+ branches :
6
+ - main
7
7
8
8
jobs :
9
9
release :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
13
+ issues : write
14
+ pull-requests : write
15
+ packages : write
11
16
steps :
12
17
- uses : actions/checkout@v4
13
18
with :
20
25
with :
21
26
node-version : " 20"
22
27
cache : " yarn"
23
- registry-url : " https://registry.npmjs.org"
28
+ registry-url : " https://npm.pkg.github.com"
29
+ scope : " @exadev"
24
30
25
31
- name : Install dependencies
26
32
run : yarn install --immutable
31
37
- name : Run tests
32
38
run : yarn test
33
39
34
- - name : Create GitHub Release
35
- uses : softprops/action-gh-release@v2
36
- with :
37
- generate_release_notes : true
38
- files : |
39
- dist/**/*
40
+ - name : Release
40
41
env :
41
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
-
43
- # Uncomment to publish to npm
44
- # - name: Publish to npm
45
- # run: npm publish
46
- # env:
47
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ run : npx semantic-release
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches" : [
3
+ " main"
4
+ ],
5
+ "plugins" : [
6
+ " @semantic-release/commit-analyzer" ,
7
+ " @semantic-release/release-notes-generator" ,
8
+ " @semantic-release/changelog" ,
9
+ " @semantic-release/npm" ,
10
+ " @semantic-release/github" ,
11
+ " @semantic-release/git"
12
+ ]
13
+ }
Original file line number Diff line number Diff line change 4
4
},
5
5
"description" : " A client library for interacting with the Breadboard API" ,
6
6
"devDependencies" : {
7
+ "@semantic-release/changelog" : " ^6.0.3" ,
8
+ "@semantic-release/git" : " ^10.0.1" ,
7
9
"@types/fs-extra" : " ^11.0.4" ,
8
10
"@types/inquirer" : " ^9.0.7" ,
9
11
"@types/jest" : " ^29.5.14" ,
10
12
"@types/node" : " ^20.17.23" ,
11
13
"jest" : " ^29.7.0" ,
14
+ "semantic-release" : " ^23.0.2" ,
12
15
"ts-jest" : " ^29.2.6" ,
13
16
"ts-node" : " ^10.9.2" ,
14
17
"typescript" : " ^5.8.2" ,
21
24
],
22
25
"license" : " UNLICENSED" ,
23
26
"main" : " dist/index.js" ,
24
- "name" : " breadboard-client" ,
27
+ "name" : " @exadev/ breadboard-client" ,
25
28
"packageManager" :
" [email protected] " ,
26
29
"scripts" : {
27
30
"build" : " tsc" ,
39
42
},
40
43
"type" : " module" ,
41
44
"types" : " dist/index.d.ts" ,
42
- "version" : " 1.0.0"
45
+ "publishConfig" : {
46
+ "registry" : " https://npm.pkg.github.com" ,
47
+ "access" : " public"
48
+ }
43
49
}
You can’t perform that action at this time.
0 commit comments