File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+ # Manual run
8+ workflow_dispatch :
9+ inputs :
10+ tag :
11+ required : true
12+ type : string
13+ description : ' Tag to release'
14+
15+ jobs :
16+ release :
17+ name : release
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+ with :
23+ ref : ${{ github.event.inputs.tag || github.ref_name }}
24+ - uses : actions/setup-node@v4
25+ with :
26+ node-version : 14
27+ registry-url : ' https://registry.npmjs.org'
28+
29+ - run : yarn install
30+ - run : npx auto-dist-tag --write
31+
32+ - run : npm publish
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change 7979 }
8080 },
8181 "git" : {
82+ "commitMessage" : " v${version}" ,
8283 "tagName" : " v${version}"
8384 },
8485 "github" : {
8586 "release" : true ,
87+ "releaseName" : " v${version}" ,
8688 "tokenRef" : " GITHUB_AUTH"
89+ },
90+ "npm" : {
91+ "publish" : false
8792 }
8893 }
8994}
You can’t perform that action at this time.
0 commit comments