Skip to content

Commit 2fa9f5b

Browse files
committed
workflow!: vue-cli-version-marker's version now only syncs with @vue/cli
This breaks @vue/cli 3.1.2 and 3.1.3 but it's a necessary change to simplify the release workflow
1 parent 47d56e9 commit 2fa9f5b

File tree

5 files changed

+4
-79
lines changed

5 files changed

+4
-79
lines changed

lerna.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"version": "4.0.0-alpha.1",
55
"packages": [
66
"packages/@vue/babel-preset-app",
7-
"packages/@vue/cli*"
7+
"packages/@vue/cli*",
8+
"packages/vue-cli-version-marker"
89
],
910
"changelog": {
1011
"repo": "vuejs/vue-cli",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sync": "node scripts/syncDeps.js",
1515
"boot": "node scripts/bootstrap.js",
1616
"release": "yarn --pure-lockfile && yarn clean && node scripts/release.js",
17-
"version": "node scripts/markVersions.js && node scripts/genChangelog.js && git add packages/vue-cli-version-marker CHANGELOG.md",
17+
"version": "node scripts/genChangelog.js && git add CHANGELOG.md",
1818
"docs": "vuepress dev docs",
1919
"docs:build": "vuepress build docs",
2020
"patch-chromedriver": "node scripts/patchChromedriver.js"

packages/vue-cli-version-marker/package.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,6 @@
66
"license": "MIT",
77
"main": "package.json",
88
"devDependencies": {
9-
"@vue/babel-preset-app": "4.0.0-alpha.1",
10-
"@vue/cli-init": "4.0.0-alpha.1",
11-
"@vue/cli-overlay": "4.0.0-alpha.1",
12-
"@vue/cli-plugin-babel": "4.0.0-alpha.1",
13-
"@vue/cli-plugin-e2e-cypress": "4.0.0-alpha.1",
14-
"@vue/cli-plugin-e2e-nightwatch": "4.0.0-alpha.1",
15-
"@vue/cli-plugin-eslint": "4.0.0-alpha.1",
16-
"@vue/cli-plugin-pwa": "4.0.0-alpha.1",
17-
"@vue/cli-plugin-typescript": "4.0.0-alpha.1",
18-
"@vue/cli-plugin-unit-jest": "4.0.0-alpha.1",
19-
"@vue/cli-plugin-unit-mocha": "4.0.0-alpha.1",
20-
"@vue/cli-service-global": "4.0.0-alpha.1",
21-
"@vue/cli-service": "4.0.0-alpha.1",
22-
"@vue/cli-shared-utils": "4.0.0-alpha.1",
23-
"@vue/cli-test-utils": "4.0.0-alpha.1",
24-
"@vue/cli-ui-addon-webpack": "4.0.0-alpha.1",
25-
"@vue/cli-ui-addon-widgets": "4.0.0-alpha.1",
26-
"@vue/cli-ui": "4.0.0-alpha.1",
27-
"@vue/cli-upgrade": "4.0.0-alpha.1",
289
"@vue/cli": "4.0.0-alpha.1"
2910
}
30-
}
11+
}

scripts/markVersions.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

scripts/release.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,6 @@ const release = async () => {
112112
}
113113

114114
await execa(require.resolve('lerna/cli'), lernaArgs, { stdio: 'inherit' })
115-
116-
// publish version marker after all other packages are published
117-
await execa(
118-
'npm',
119-
[
120-
'publish',
121-
'--tag',
122-
distTag,
123-
// must specify registry url: https://github.com/lerna/lerna/issues/896#issuecomment-311894609
124-
'--registry',
125-
'https://registry.npmjs.org/'
126-
],
127-
{
128-
stdio: 'inherit',
129-
cwd: require('path').resolve(
130-
__dirname,
131-
'../packages/vue-cli-version-marker'
132-
)
133-
}
134-
)
135115
}
136116

137117
release().catch(err => {

0 commit comments

Comments
 (0)