Unverified Commit 8268575c authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

[release-new] move "add label to pr" workflow from publish to trigger (#79619)

It _does work_ but it is more natural to put the "add a label to pr"
workflow after the "create pr" workflow.
parent 05dc8408
......@@ -614,13 +614,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
# Add label to verify the PR is created from this workflow.
- name: Add label to PR
if: steps.changesets.outputs.pullRequestNumber
run: 'gh pr edit ${{ steps.changesets.outputs.pullRequestNumber }} --add-label "created-by: CI"'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Send a Slack notification of the publish status
run: pnpm tsx scripts/release/slack.ts
env:
......
......@@ -107,10 +107,17 @@ jobs:
- run: pnpm run build
- name: Create Release Pull Request
id: version-packages
id: changesets
uses: changesets/action@v1
with:
version: pnpm ci:version
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
RELEASE_TYPE: ${{ github.event.inputs.releaseType }}
# Add label to verify the PR is created from this workflow.
- name: Add label to PR
if: steps.changesets.outputs.pullRequestNumber
run: 'gh pr edit ${{ steps.changesets.outputs.pullRequestNumber }} --add-label "created-by: CI"'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment