Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,19 @@ jobs:
npx release-it $ARGS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Close pending release issues
if: ${{ inputs.dry_run == false }}
working-directory: packages/uniwind
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="$(node -p "require('./package.json').version")"
Comment thread
Brentlok marked this conversation as resolved.
TAG="v$VERSION"
RELEASE_URL="$(gh release view "$TAG" --json url --jq .url)"

gh issue list --state open --label "pending-release" --json number --jq '.[].number' | while read -r ISSUE; do
Comment thread
Brentlok marked this conversation as resolved.
Comment thread
Brentlok marked this conversation as resolved.
gh issue edit "$ISSUE" --remove-label "pending-release" || echo "::warning::failed to remove label on #$ISSUE"
gh issue comment "$ISSUE" --body "New release $TAG is published: $RELEASE_URL" || echo "::warning::failed to comment on #$ISSUE"
gh issue close "$ISSUE" || echo "::warning::failed to close #$ISSUE"
done