* chore(action): Rework action to be a composite action - Removed docker image and workflow around it - Externalizing `@sentry/cli` so it can be installed per-runner - Support versioning of actions publishing major, minor and patch tags allowing users to pin versions - Reduce action run time by 80% as a result Closes: #185, #193, #233 * Fix path * Add @sentry/cli as dev dep so we can build locally but have it overwritten on the CI by the install step * Improve changelog * Update .github/workflows/test.yml Co-authored-by: Francesco Gringl-Novy <[email protected]> * Remove caching of yarn cache * Remove volta in action itself * Remove fetch depths for ci tests * Pin @sentry/cli to ~2.4 * Change to `^2.4` * Read out workspace path directly in action * Add comment * Run lint and format * Add lint step to test.yml * Simplify workingDirectory checks --------- Co-authored-by: Francesco Gringl-Novy <[email protected]>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Prepare Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Version to release
|
|
required: true
|
|
force:
|
|
description: Force a release even when there are release-blockers (optional)
|
|
required: false
|
|
merge_target:
|
|
description: Target branch to merge into. Uses the default branch as a fallback (optional)
|
|
required: false
|
|
default: master
|
|
|
|
jobs:
|
|
release:
|
|
name: Release a new version
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Get auth token
|
|
id: token
|
|
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
|
|
with:
|
|
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
|
|
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ steps.token.outputs.token }}
|
|
fetch-depth: 0
|
|
|
|
- name: Prepare release
|
|
uses: getsentry/action-prepare-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
|
|
with:
|
|
version: ${{ github.event.inputs.version }}
|
|
force: ${{ github.event.inputs.force }}
|
|
merge_target: ${{ github.event.inputs.merge_target }}
|