Skip to content

Commit

Permalink
fix: only show test step for manual publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Mar 23, 2023
1 parent 7102893 commit c67fd00
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions bin/release-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ const args = process.argv.slice(2).reduce((acc, a) => {
return acc
}, {})

const PUBLISH_STEPS = `
const MANUAL_PUBLISH_STEPS = `
1. Checkout the release branch and test
\`\`\`sh
gh pr checkout <PR-NUMBER> --force
npm ${args.lockfile ? 'ci' : 'update'}
npm test
gh pr checks --watch
\`\`\`
1. Publish workspaces
\`\`\`sh
Expand All @@ -31,22 +40,11 @@ const PUBLISH_STEPS = `
`

/* eslint-disable max-len */
const DEFAULT_RELEASE_PROCESS = `
1. Checkout the release branch and test
\`\`\`sh
gh pr checkout <PR-NUMBER> --force
npm ${args.lockfile ? 'ci' : 'update'}
npm test
gh pr checks --watch
\`\`\`
${!args.publish ? PUBLISH_STEPS : ''}
const DEFAULT_RELEASE_PROCESS = (!args.publish ? MANUAL_PUBLISH_STEPS : '') + `
1. Merge release PR ${args.publish ? `:rotating_light: Merging this will auto publish :rotating_light:` : ''}
\`\`\`sh
gh pr merge --rebase
gh pr merge <PR-NUMBER> --rebase
git checkout <BASE-BRANCH>
git fetch
git reset --hard origin/<BASE-BRANCH>
Expand Down

0 comments on commit c67fd00

Please sign in to comment.