Skip to content
Merged
Show file tree
Hide file tree
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
90 changes: 0 additions & 90 deletions .github/scripts/open-release-pr.mjs

This file was deleted.

14 changes: 2 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ concurrency:

permissions:
contents: write
pull-requests: write

jobs:
publish:
Expand Down Expand Up @@ -53,10 +52,6 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
npm version ${{ inputs.version }} --no-git-tag-version
VERSION=$(node -p "require('./package.json').version")
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
echo "RELEASE_BRANCH=release/v${VERSION}" >> "$GITHUB_ENV"
# main is protected (requires a PR), so commit to a release branch and merge via PR.
git switch -c "release/v${VERSION}"
git add package.json
git commit -m "release: v${VERSION}"
git tag "v${VERSION}"
Expand All @@ -71,13 +66,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push release branch and tag, open auto-merge PR
- name: Push version commit and tag
if: ${{ inputs.dry-run != true }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin "${RELEASE_BRANCH}"
git push origin main
git push origin --tags
# gh CLI is not installed on the self-hosted runner — open the PR + enable
# auto-merge via the GitHub API (Node global fetch) instead.
node .github/scripts/open-release-pr.mjs
Loading