diff --git a/.craft.yml b/.craft.yml index 8ca44b6a35f8..197ec23d8e47 100644 --- a/.craft.yml +++ b/.craft.yml @@ -1,4 +1,4 @@ -minVersion: '0.13.2' +minVersion: '0.14.0' github: owner: getsentry repo: sentry-javascript diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..72e172b51fc4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: 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 +jobs: + release: + runs-on: ubuntu-latest + name: 'Release a new version' + steps: + - name: Prepare release + uses: getsentry/action-prepare-release@main + with: + version: ${{ github.event.inputs.version }} + force: ${{ github.event.inputs.force }} + - uses: actions/checkout@v2 + with: + token: ${{ secrets.GH_RELEASE_PAT }} + fetch-depth: 0 + - uses: getsentry/craft@master + name: Craft Prepare + with: + action: prepare + version: ${{ env.RELEASE_VERSION }} + - name: Request publish + if: success() + uses: actions/github-script@v3 + with: + github-token: ${{ secrets.GH_RELEASE_PAT }} + script: | + const repoInfo = context.repo; + await github.issues.create({ + owner: repoInfo.owner, + repo: 'publish', + title: `publish: ${repoInfo.repo}@${process.env.RELEASE_VERSION}`, + });