Skip to content

chore: consolidate CHANGELOG to repo root (#276) #8

chore: consolidate CHANGELOG to repo root (#276)

chore: consolidate CHANGELOG to repo root (#276) #8

name: Release Please
on:
push:
branches:
- master
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs['packages/sentry-testkit--release_created'] }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn workspace sentry-testkit build
- name: Test
run: yarn workspace sentry-testkit test
- name: Publish to npm
run: yarn workspace sentry-testkit npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}