Skip to content

Commit 3636dde

Browse files
authored
chore: update RP workflow and secrets (#33)
2 parents eb20bc9 + 462c891 commit 3636dde

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/release-please.yml

+17-11
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
1+
# Relevent docs:
2+
# - https://github.com/googleapis/release-please
3+
# - https://github.com/googleapis/release-please-action
4+
15
on:
26
workflow_dispatch:
7+
38
push:
49
branches:
510
- main
611

7-
name: Release PR
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
name: release-please
817

918
jobs:
1019
release-please:
1120
runs-on: ubuntu-latest
1221
steps:
13-
- uses: google-github-actions/release-please-action@v3
22+
- uses: googleapis/release-please-action@v4
1423
id: release
1524
with:
25+
token: ${{ secrets.RUNMD_RELEASE_PLEASE_TOKEN }}
1626
release-type: node
17-
package-name: test-release-please
1827

19-
#
20-
# On release, checkout and run tests before publishing...
21-
#
28+
# Steps below handle publication to NPM
2229

23-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
2431
if: ${{ steps.release.outputs.release_created }}
25-
26-
- uses: actions/setup-node@v3
32+
- uses: actions/setup-node@v4
2733
with:
28-
node-version: 16
34+
node-version: 20
2935
registry-url: 'https://registry.npmjs.org'
3036
if: ${{ steps.release.outputs.release_created }}
3137

@@ -37,5 +43,5 @@ jobs:
3743

3844
- run: npm publish
3945
env:
40-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
46+
NODE_AUTH_TOKEN: ${{secrets.RUNMD_NPM_RELEASE_TOKEN}}
4147
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)