Skip to content

Commit cbb52d2

Browse files
authored
Followups on the release branch workflow (#5478)
- The GH action doesn't fetch the `master` branch, so it was missing - The job wasn't retry-able, the npm package publishing would have failed.
1 parent 778ad2f commit cbb52d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/release-branch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
run: |
6060
RELEASE_COMMIT=$(git rev-parse HEAD)
6161
node ./scripts/stable-versions-store.js
62+
git fetch origin master
6263
git checkout master
6364
node ./scripts/stable-versions-restore.js
6465
HEAD_COMMIT=$(git rev-parse HEAD)

scripts/release/03-release-npm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ cd "$TEMP_DIR"
2828
export YARN_ENABLE_IMMUTABLE_INSTALLS=0
2929

3030
node "$TEMP_DIR"/bin/yarn.js
31-
node "$TEMP_DIR"/bin/yarn.js npm publish --access=public
31+
node "$TEMP_DIR"/bin/yarn.js npm publish --tolerate-republish --access=public

0 commit comments

Comments
 (0)