Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Conversation

@dhayab
Copy link
Member

@dhayab dhayab commented May 20, 2022

This PR migrates the release process from release-it to shipjs. It now allows us to prepare a release via a PR, as we do with our other projects.

Ticket: FX-1143

@dhayab dhayab marked this pull request as ready for review May 20, 2022 13:53
@dhayab dhayab requested review from a team, FabienMotte and sarahdayan and removed request for a team May 20, 2022 13:53
dhayab and others added 3 commits May 20, 2022 17:46
Comment on lines +127 to +137
// Use the `origin-with-token` remote if it exists (when run with Ship.js)
const origin = execSync(
`git remote | grep origin-with-token || echo origin`
)
.toString()
.trim();

// Push the new demos to the `templates` branch
console.log();
console.log(`▶︎ Pushing to branch "${chalk.green(TEMPLATES_BRANCH)}"`);
execSync(`git push origin ${TEMPLATES_BRANCH}`);
execSync(`git push ${origin} ${TEMPLATES_BRANCH}`);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the release process is now performed within CircleCI, this modification allows the script to push on the token-authenticated remote Ship.js uses to push the new tag.

I don't know how to test if beforehands though, but it should work. Wdyt @Haroenv @sarahdayan @FabienMotte?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, we can always revert if it doesn't work for the next deploy.

@dhayab dhayab requested a review from sarahdayan May 20, 2022 16:03
@dhayab dhayab merged commit 59aa760 into master Jun 2, 2022
@dhayab dhayab deleted the chore/shipjs branch June 2, 2022 09:57
aymeric-giraudet pushed a commit to algolia/instantsearch that referenced this pull request Dec 14, 2022
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants