Skip to content

ci(release-please): signoff commits #3

ci(release-please): signoff commits

ci(release-please): signoff commits #3

on:
push:
branches:
- main
permissions:
id-token: write
contents: write
pull-requests: write
name: release-please
jobs:
release:
runs-on: ubuntu-latest
outputs:
paths_released: ${{ steps.rp_step.outputs.paths_released }}
releases_created: ${{ steps.rp_step.outputs.releases_created }}
steps:
- uses: googleapis/release-please-action@v4
id: rp_step
with:
# Expires ~December 2024
token: ${{ secrets.REPO_ADMIN_TOKEN }}
config-file: release-please-config.json
manifest-file: release-please-manifest.json
signoff:
"github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
publish:
needs:
- release
if: ${{ needs.release.outputs.releases_created }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
path: ${{ fromJson(needs.release.outputs.paths_released) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
# Can't cache, since we don't commit the lockfile
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: |
npm install
- name: Build
run: |
npm run build:ws
- name: Publish
env:
# Expires ~December 2024
# Uses NODE_AUTH_TOKEN which is supported by actions/setup-node
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: |
cd ${{ matrix.path }}
npm publish --provenance --access public