Skip to content

Commit 0effec2

Browse files
committed
workflow: document release process [ci skip]
1 parent 7d46db9 commit 0effec2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

scripts/release.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
/**
2+
3+
How to do a release:
4+
5+
1. Make sure you have publish access for all packages:
6+
- You must be in the CLI team in the npm @vue organization
7+
- You must have publish access to vue-cli-version-marker
8+
- Make sure you DO NOT have npm per-publish 2-factor / OTP enabled, as it
9+
does not work with Lerna (which we use for batch publishing).
10+
11+
2. Run `yarn release`, follow prompts
12+
13+
3A. If everything works properly, the tag should have been auto-pushed and a
14+
local changelog commit should have been generated. Go to 4.
15+
16+
3B. If the publish fails half-way, things have gotten hairy. Now you need to
17+
go to npm to check which packages have been published and manually publish
18+
the ones that have not been published yet. After all have been published:
19+
20+
3B.1. Push the release git tag to GitHub.
21+
3B.2. Run `yarn changelog` to generate changelog commit.
22+
23+
4. Push the changelog commit to `dev` branch.
24+
25+
5. Go to GitHub and verify that the changelog is live.
26+
27+
6. Go to GitHub releases page and publish the release (this is required for
28+
the release to show up in the issue helper)
29+
30+
*/
31+
132
process.env.VUE_CLI_RELEASE = true
233

334
const execa = require('execa')

0 commit comments

Comments
 (0)