Skip to content

Commit

Permalink
chore: update RP workflow and secrets (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa authored Dec 24, 2024
2 parents eb20bc9 + 462c891 commit 3636dde
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
# Relevent docs:
# - https://github.com/googleapis/release-please
# - https://github.com/googleapis/release-please-action

on:
workflow_dispatch:

push:
branches:
- main

name: Release PR
permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RUNMD_RELEASE_PLEASE_TOKEN }}
release-type: node
package-name: test-release-please

#
# On release, checkout and run tests before publishing...
#
# Steps below handle publication to NPM

- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

Expand All @@ -37,5 +43,5 @@ jobs:

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.RUNMD_NPM_RELEASE_TOKEN}}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 3636dde

Please sign in to comment.