mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-08-17 00:00:26 +03:00
parent
1e419f8543
commit
1927ebcb3e
7
.github/CONTRIBUTING.md
vendored
7
.github/CONTRIBUTING.md
vendored
@ -122,6 +122,8 @@ This is my hack to simulate a click event based API in an IDE that doesn't have
|
||||
|
||||
## Release
|
||||
|
||||
Before you push a release, be sure to make sure the changelog is updated!
|
||||
|
||||
To push a release:
|
||||
|
||||
```bash
|
||||
@ -132,9 +134,8 @@ git push --follow-tags
|
||||
The above Gulp command will:
|
||||
|
||||
1. Bump the package version based off the semver supplied. Supported values: patch, minor, major.
|
||||
2. Create a changelog using [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator).
|
||||
3. Create a Git commit with the above changes.
|
||||
4. Create a Git tag using the new package version.
|
||||
2. Create a Git commit with the above changes.
|
||||
3. Create a Git tag using the new package version.
|
||||
|
||||
In addition to building and testing the extension, when a tag is applied to the commit, the CI server will also create a GitHub release and publish the new version to the Visual Studio marketplace.
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
project=vim
|
||||
user=vscodevim
|
||||
base=build/CHANGELOG.base.md
|
||||
bugs-label=**Fixed Bugs:**
|
||||
bug-labels=kind/bug
|
||||
enhancement-label=**Enhancements:**
|
||||
enhancement-labels=kind/enhancement,kind/feature
|
||||
exclude-labels=status/by-design,status/duplicate,status/user-error,status/already-resolved,kind/question,kind/discussion,pr/dependency,upstream/different-plugin,upstream/vscode
|
||||
since-tag=v1.16.0
|
||||
max-issues=500
|
@ -22,4 +22,3 @@ tslint.json
|
||||
webpack.config.js
|
||||
gulpfile.js
|
||||
renovate.json
|
||||
.github_changelog_generator
|
||||
|
File diff suppressed because it is too large
Load Diff
56
gulpfile.js
56
gulpfile.js
@ -70,59 +70,15 @@ function validateArgs(done) {
|
||||
);
|
||||
}
|
||||
|
||||
const gitHubToken = options.gitHubToken || process.env.CHANGELOG_GITHUB_TOKEN;
|
||||
if (!gitHubToken) {
|
||||
return done(
|
||||
new PluginError('createChangelog', {
|
||||
message:
|
||||
'Missing GitHub API Token. Supply token using `--gitHubToken` option or `CHANGELOG_GITHUB_TOKEN` environment variable.',
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
done();
|
||||
}
|
||||
|
||||
function createChangelog(done) {
|
||||
const imageName = 'jpoon/github-changelog-generator';
|
||||
const version = require('./package.json').version;
|
||||
|
||||
const options = minimist(process.argv.slice(2), releaseOptions);
|
||||
const gitHubToken = options.gitHubToken || process.env.CHANGELOG_GITHUB_TOKEN;
|
||||
|
||||
var dockerRunCmd = spawn(
|
||||
'docker',
|
||||
[
|
||||
'run',
|
||||
'-it',
|
||||
'--rm',
|
||||
'-v',
|
||||
process.cwd() + ':/usr/local/src/your-app',
|
||||
imageName,
|
||||
'--token',
|
||||
gitHubToken,
|
||||
'--future-release',
|
||||
'v' + version,
|
||||
],
|
||||
{
|
||||
cwd: process.cwd(),
|
||||
stdio: 'inherit',
|
||||
}
|
||||
);
|
||||
|
||||
dockerRunCmd.on('exit', function (exitCode) {
|
||||
done(exitCode);
|
||||
});
|
||||
}
|
||||
|
||||
function createGitTag() {
|
||||
return gulp.src(['./package.json']).pipe(tag_version());
|
||||
}
|
||||
|
||||
function createGitCommit() {
|
||||
return gulp
|
||||
.src(['./package.json', './yarn.lock', 'CHANGELOG.md'])
|
||||
.pipe(git.commit('bump version'));
|
||||
return gulp.src(['./package.json', './yarn.lock']).pipe(git.commit('bump version'));
|
||||
}
|
||||
|
||||
function updateVersion(done) {
|
||||
@ -297,16 +253,8 @@ gulp.task(
|
||||
);
|
||||
gulp.task('prepare-test', gulp.parallel('tsc', copyPackageJson));
|
||||
gulp.task('test', gulp.series('prepare-test', 'run-test'));
|
||||
gulp.task('changelog', gulp.series(validateArgs, createChangelog));
|
||||
gulp.task(
|
||||
'release',
|
||||
gulp.series(
|
||||
validateArgs,
|
||||
updateVersion,
|
||||
createChangelog,
|
||||
'prettier',
|
||||
createGitCommit,
|
||||
createGitTag
|
||||
)
|
||||
gulp.series(validateArgs, updateVersion, 'prettier', createGitCommit, createGitTag)
|
||||
);
|
||||
gulp.task('default', gulp.series('build', 'test'));
|
||||
|
Loading…
Reference in New Issue
Block a user