Merge pull request #1154 from paperclipai/release-automation-followups
Release automation follow-ups
This commit is contained in:
16
.github/CODEOWNERS
vendored
16
.github/CODEOWNERS
vendored
@@ -1,10 +1,10 @@
|
|||||||
# Replace @dotta if a different maintainer or team should own release infrastructure.
|
# Replace @dotta if a different maintainer or team should own release infrastructure.
|
||||||
|
|
||||||
.github/workflows/release.yml @dotta
|
.github/** @dotta @devinfoley
|
||||||
scripts/release*.sh @dotta
|
scripts/release*.sh @dotta @devinfoley
|
||||||
scripts/release-*.mjs @dotta
|
scripts/release-*.mjs @dotta @devinfoley
|
||||||
scripts/create-github-release.sh @dotta
|
scripts/create-github-release.sh @dotta @devinfoley
|
||||||
scripts/rollback-latest.sh @dotta
|
scripts/rollback-latest.sh @dotta @devinfoley
|
||||||
doc/RELEASING.md @dotta
|
doc/RELEASING.md @dotta @devinfoley
|
||||||
doc/PUBLISHING.md @dotta
|
doc/PUBLISHING.md @dotta @devinfoley
|
||||||
doc/RELEASE-AUTOMATION-SETUP.md @dotta
|
doc/RELEASE-AUTOMATION-SETUP.md @dotta @devinfoley
|
||||||
|
|||||||
12
.github/workflows/refresh-lockfile.yml
vendored
12
.github/workflows/refresh-lockfile.yml
vendored
@@ -79,3 +79,15 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "PR #$existing already exists, branch updated via force push."
|
echo "PR #$existing already exists, branch updated via force push."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Enable auto-merge for lockfile PR
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: |
|
||||||
|
pr_url="$(gh pr list --head chore/refresh-lockfile --json url --jq '.[0].url')"
|
||||||
|
if [ -z "$pr_url" ]; then
|
||||||
|
echo "Error: lockfile PR was not found." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
gh pr merge --auto --squash --delete-branch "$pr_url"
|
||||||
|
|||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -92,6 +92,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --no-frozen-lockfile
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
|
- name: Restore tracked install-time changes
|
||||||
|
run: git checkout -- pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Configure git author
|
- name: Configure git author
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
@@ -218,6 +221,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --no-frozen-lockfile
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
|
- name: Restore tracked install-time changes
|
||||||
|
run: git checkout -- pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Configure git author
|
- name: Configure git author
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ Note:
|
|||||||
|
|
||||||
- the release workflows intentionally use `pnpm install --no-frozen-lockfile`
|
- the release workflows intentionally use `pnpm install --no-frozen-lockfile`
|
||||||
- this matches the repo's current policy where `pnpm-lock.yaml` is refreshed by GitHub automation after manifest changes land on `master`
|
- this matches the repo's current policy where `pnpm-lock.yaml` is refreshed by GitHub automation after manifest changes land on `master`
|
||||||
|
- the publish jobs then restore `pnpm-lock.yaml` before running `scripts/release.sh`, so the release script still sees a clean worktree
|
||||||
|
|
||||||
## 1. Merge the Repo Changes First
|
## 1. Merge the Repo Changes First
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user