File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-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+ - main
7+
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : false
11+
12+ permissions : {}
13+
14+ jobs :
15+ release-please :
16+ timeout-minutes : 10
17+ permissions :
18+ contents : write
19+ pull-requests : write
20+ issues : write
21+ runs-on : ubuntu-latest
22+ outputs :
23+ should-release : ${{ steps.release-please.outputs.release_created }}
24+ steps :
25+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+ with :
27+ persist-credentials : false
28+ - id : release-please
29+ uses : googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
30+ with :
31+ release-type : node
32+ token : ${{ github.token }}
33+
34+ publish :
35+ needs : release-please
36+ timeout-minutes : 10
37+ runs-on : ubuntu-latest
38+ permissions :
39+ contents : read
40+ if : ${{ needs.release-please.outputs.should-release == 'true' }}
41+ steps :
42+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+ with :
44+ persist-credentials : false
45+
46+ - uses : ./.github/actions/setup
47+
48+ - name : Create .npmrc
49+ run : |
50+ (
51+ # shellcheck disable=SC2016
52+ echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}'
53+ echo 'registry=https://registry.npmjs.org'
54+ ) > .npmrc
55+ - run : npm publish
56+ env :
57+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments