-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed version update lifecycle scripts to skip auto tagging
- Added a local .npmrc - Set a reminder for windows environment setup - Added chalk for better logging
- Loading branch information
Showing
4 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git-tag-version = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
const boxen = require('boxen'); | ||
const chalk = require('chalk'); | ||
const browsers = require('./browsers.js'); | ||
|
||
const name = process.argv.slice(2)[0].split('=')[1]; | ||
const version = process.argv.slice(2)[1].split('=')[1]; | ||
|
||
const bundleList = browsers.map(browser => ` - dist/${name}-${browser.name}-${version}.zip`).join('\n'); | ||
|
||
const info = `# You need to take some extra actions manually to finish version update: | ||
const info = `# You need to take some extra actions manually to finish version update | ||
- - - | ||
1. Run \`git push && git push --tags\` to push recent changes to the repository | ||
2. Upload created zip bundles to the GitHub release as binaries | ||
You've just run ${chalk.green('npm version patch|minor|major')} on development branch, this did: | ||
- Update ${chalk.bold('package.json')} and ${chalk.bold('package-lock.json')} versions | ||
- Run unit tests for ${chalk.bold('extension')} directory | ||
- Create bundle zip files and run bundle linters for ${chalk.bold('dist')} directory | ||
- Commit ${chalk.bold('package.json')} and ${chalk.bold('package-lock.json')} changes | ||
... and you should: | ||
1. Switch to the ${chalk.bold('master')} branch, merge these version changes onto it | ||
2. Tag ${chalk.bold('master')} branch manually with ${chalk.green('git tag -a v' + version + ' -m "Version update"')} | ||
- ${chalk.bold('npm')}'s auto tagging feature is disabled by ${chalk.dim('git-tag-version = false')} config in ${chalk.bold('.npmrc')} | ||
3. Run ${chalk.green('git push && git push --tags')} to push version changes to the origin | ||
4. Upload created zip bundles created under ${chalk.bold('dist/*')} directory to the ${chalk.bold('GitHub')} as release binaries | ||
${bundleList} | ||
3. Continue to do whatever you were doing before deployment :)`; | ||
5. Continue to do whatever you were doing before deployment :)`; | ||
|
||
const output = boxen(info, { | ||
padding: 1, | ||
dimBorder: true, | ||
margin: { bottom: 1 } | ||
margin: { top: 1, bottom: 1 } | ||
}); | ||
|
||
console.log(output); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters