Skip to content

Commit

Permalink
set custom promoted output from publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Trombach committed Oct 20, 2024
1 parent bd5823d commit 254cabf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,21 @@ jobs:
with:
version: pnpm bump-version
publish: |
echo "promoted=false" >> "$GITHUB_OUTPUT"
pnpm vercel promote ${{ steps.get-staging-id.outputs.id }} \
--scope=trombachs-projects \
--token=${{ secrets.VERCEL_TOKEN }}
echo "promoted=true" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PAT }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
- name: Create Release
if: steps.create-release-pr.outputs.published == 'true'
if: steps.create-release-pr.outputs.promoted == true
run: |
tag=`echo '${{ steps.create-release-pr.outputs.publishedPackages }}' |
jq -r '.[] | select(.name == "homepage") | .version'`
gh release create $tag --title $tag --generate-notes --latest
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 254cabf

Please sign in to comment.