mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(release): rename release script
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
# Build Scripts
|
||||
|
||||
## Deploy
|
||||
## Release
|
||||
|
||||
The deploy scripts at the root, make a new release of all the packages in this monorepo.
|
||||
All packages will be released with the same version.
|
||||
|
||||
In order to make a new release:
|
||||
|
||||
1. `npm run prepare.deploy`
|
||||
1. `npm run release.prepare`
|
||||
2. Review/update changelog
|
||||
3. Commit updates using the package name and version number as the commit message.
|
||||
4. `npm run deploy`
|
||||
4. `npm run release`
|
||||
5. :tada:
|
||||
|
||||
|
||||
|
||||
@@ -60,22 +60,24 @@ async function publishPackages(packages, version) {
|
||||
);
|
||||
});
|
||||
|
||||
// push commits and tags to git remote
|
||||
publishGit(version);
|
||||
// push tag to git remote
|
||||
publishGitTag(tasks, version);
|
||||
|
||||
const listr = new Listr(tasks);
|
||||
await listr.run();
|
||||
}
|
||||
|
||||
|
||||
function publishGit(tasks, version) {
|
||||
function publishGitTag(tasks, version) {
|
||||
const tag = `v${version}`;
|
||||
|
||||
tasks.push(
|
||||
{
|
||||
title: 'Tagging the latest commit',
|
||||
task: () => execa('git', ['tag', `v${version}`], { cwd: common.rootDir })
|
||||
title: `Tag latest commit ${chalk.dim(`(${tag})`)}`,
|
||||
task: () => execa('git', ['tag', `${tag}`], { cwd: common.rootDir })
|
||||
},
|
||||
{
|
||||
title: 'Pushing to Github',
|
||||
title: 'Push tag to Github',
|
||||
task: () => execa('git', ['push', '--follow-tags'], { cwd: common.rootDir })
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user