You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,30 @@ See the [docs](https://test-utils.vuejs.org/).
25
25
26
26
Get started by running `pnpm install`. You can run the tests with `pnpm test`. That's it!
27
27
28
+
## Releasing
29
+
30
+
Releases are published to npm from GitHub Actions using npm trusted publishing.
31
+
Publishing with npm tokens is disabled, so a release requires:
32
+
33
+
- write access to the `vuejs/test-utils` repository
34
+
- the release commit to be on `main`
35
+
-`package.json` to contain the version being released
36
+
- approval from a maintainer with access to the `npm-publish` GitHub environment
37
+
38
+
To cut a release, push a version tag from `main`:
39
+
40
+
```sh
41
+
git checkout main
42
+
git pull
43
+
git tag v2.x.y
44
+
git push origin v2.x.y
45
+
```
46
+
47
+
Pushing a `v*` tag starts the release workflow.
48
+
The workflow builds the package, pauses for approval in the `npm-publish` environment,
49
+
then publishes `@vue/test-utils` to npm after approval.
50
+
The person who pushed the tag cannot self-approve the publish step.
51
+
28
52
## Contributing Docs
29
53
30
54
All the documentation files can be found in `docs`. It contains the English markdown files while translation(s) are stored in their corresponding `<lang>` sub-folder(s):
0 commit comments