File tree 2 files changed +35
-1
lines changed
2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Inspired by Elk.Zone - Release Action
2
+ # https://github.com/elk-zone/elk/blob/main/.github/workflows/release.yml
3
+ # This action creates a release with every new tag that is created.
4
+ # It attaches release notes to the release which are based on the github commits / pull requests.
5
+ name : Release Notes
6
+
7
+ permissions :
8
+ contents : write
9
+
10
+ on :
11
+ push :
12
+ tags :
13
+ - ' v*'
14
+
15
+ jobs :
16
+ release :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+
23
+ - name : Set node
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : 18
27
+
28
+ - run : npx changelogithub
29
+ env :
30
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 19
19
"format" : " xo" ,
20
20
"format:fix" : " xo --fix" ,
21
21
"test" : " xo && ava -v" ,
22
- "ava" : " ava -v --watch"
22
+ "ava" : " ava -v --watch" ,
23
+ "release" : " bumpp -r && tsx scripts/release.ts"
23
24
},
24
25
"files" : [
25
26
" index.js"
43
44
},
44
45
"devDependencies" : {
45
46
"ava" : " ^4.1.0" ,
47
+ "bumpp" : " ^10.1.0" ,
46
48
"dotenv" : " ^16.0.0" ,
47
49
"npm-check-updates" : " ^12.5.4" ,
50
+ "simple-git" : " ^3.27.0" ,
51
+ "tsx" : " ^4.19.3" ,
48
52
"xo" : " ^0.48.0"
49
53
}
50
54
}
You can’t perform that action at this time.
0 commit comments