Skip to content

Commit 5ba9ad4

Browse files
committed
fix(release): stabilize package publication
1 parent 507ceff commit 5ba9ad4

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
with:
6363
persist-credentials: false
6464
fetch-depth: 0
65+
ref: main
6566
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
6667
with:
6768
standalone: true
@@ -105,7 +106,8 @@ jobs:
105106
env:
106107
GH_TOKEN: ${{ steps.release-bot.outputs.token }}
107108
RELEASE_TAG: ${{ steps.release.outputs.new_release_git_tag }}
108-
run: gh release verify "$RELEASE_TAG"
109+
run: |
110+
test "$(gh api "repos/$GITHUB_REPOSITORY/releases/tags/$RELEASE_TAG" --jq .immutable)" = true
109111
110112
- name: Stage released package version
111113
if: steps.release.outputs.new_release_published == 'true'
@@ -115,6 +117,10 @@ jobs:
115117
npm pkg set version="$RELEASE_VERSION"
116118
git add -- package.json
117119
120+
- name: Normalize commit target
121+
if: steps.release.outputs.new_release_published == 'true'
122+
run: git remote set-url origin "https://github.com/${GITHUB_REPOSITORY}.git"
123+
118124
- name: Commit released package version
119125
if: steps.release.outputs.new_release_published == 'true'
120126
uses: grafana/github-api-commit-action@b1d81091e8480dd11fcea8bc1f0ab977a0376ca5 # v1.0.0

test/golden-parity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ test("kit CLI reproduces every legacy golden", () => {
8383
0,
8484
`parity mismatches (${mismatches.length}):\n\n${mismatches.join("\n\n")}`,
8585
);
86-
});
86+
}, 20_000);

0 commit comments

Comments
 (0)