Skip to content

Commit dc42ae7

Browse files
authored
chore(repo): update changeset snapshot instructions (#2505)
1 parent b0b88f1 commit dc42ae7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

CHANGESETS.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ Please follow the best-practice of adding changesets in the same commit as the c
3030

3131
## Snapshot instructions
3232

33-
1. Delete the `.changeset/pre.json` file (if it exists)
33+
1. Update the `.changeset/config.json` file to set the `"changelog"` field to this:
3434

35-
2. Do a temporary commit (do NOT push this, you should undo it after)
35+
```json
36+
"changelog": "@changesets/cli/changelog",
37+
```
3638

37-
3. Copy the `GITHUB_TOKEN` line from the .env file
39+
2. Do a temporary commit (do NOT push this, you should undo it after)
3840

39-
4. Run `GITHUB_TOKEN=github_pat_12345 ./scripts/publish-prerelease.sh re2`
41+
3. Run `./scripts/publish-prerelease.sh prerelease`
4042

41-
Make sure to replace the token with yours. `re2` is the tag that will be used for the pre-release.
43+
You can choose a different tag if you want, but usually `prerelease` is fine.
4244

43-
5. Undo the commit where you deleted the pre.json file.
45+
5. Undo the commit where you updated the config.json file.

0 commit comments

Comments
 (0)