File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release-please
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+ cancel-in-progress : true
11+
12+ permissions :
13+ contents : write
14+ pull-requests : write
15+
16+ jobs :
17+ release-please :
18+ runs-on : self-hosted-arc
19+ outputs :
20+ release_created : ${{ steps.release.outputs.release_created }}
21+ steps :
22+ - uses : googleapis/release-please-action@v4
23+ id : release
24+ with :
25+ token : ${{ secrets.GH_ACCESS_TOKEN }}
26+ release-type : node
27+ config-file : release-please-config.json
28+
29+ publish :
30+ needs : release-please
31+ if : ${{ needs.release-please.outputs.release_created }}
32+ runs-on : self-hosted-arc
33+ steps :
34+ - uses : actions/checkout@v4
35+
36+ - uses : actions/setup-node@v4
37+ with :
38+ node-version : " 22"
39+ registry-url : " https://registry.npmjs.org"
40+ cache : " npm"
41+
42+ - run : npm ci
43+
44+ - run : npm run build
45+
46+ - run : npm publish --access public
47+ env :
48+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments