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: CONTRIBUTING.md
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,21 +93,27 @@ yarn pack
93
93
94
94
## Releasing
95
95
96
-
Only maintainers can make releases. Releases to [npm](https://www.npmjs.com) are automated using GitHub actions and Changesets (including the legacy `transloadit` package). To make a release, perform the following steps:
96
+
Only maintainers can make releases. Releases to [npm](https://www.npmjs.com) are automated using GitHub Actions and Changesets (including the legacy `transloadit` package).
97
97
98
-
1. Create a changeset:
98
+
Release flow:
99
+
100
+
1. Add a changeset in your PR:
99
101
-`yarn changeset`
100
-
2. Version packages (updates `CHANGELOG.md` + workspace `package.json` files):
101
-
-`yarn changeset version`
102
-
-`git add -A && git commit -m "chore: version packages"`
103
-
3. Push the version commit and tags:
104
-
-`git push origin main`
105
-
4. Publish (maintainers only; GitHub Actions handles the release):
106
-
-`yarn changeset publish`
107
-
5. When successful add [release notes](https://github.com/transloadit/node-sdk/releases).
108
-
6. Scoped packages publish with the `experimental` dist-tag by default. If you need to promote a scoped package to `latest`, update the tag manually.
109
-
7. If this was a pre-release, remember to reset the [npm `latest` tag](https://www.npmjs.com/package/transloadit?activeTab=versions) to the previous version (replace `x.y.z` with previous version):
110
-
-`npm dist-tag add transloadit@X.Y.Z latest`
102
+
2. Merge the PR to `main`.
103
+
3. The `release` workflow opens a “Version Packages” PR with changelog + version bumps.
104
+
4. Review and merge the version PR. CI publishes automatically via npm trusted publishing (OIDC).
105
+
5. Add [release notes](https://github.com/transloadit/node-sdk/releases) once the publish succeeds.
106
+
107
+
Manual fallback (maintainers only):
108
+
109
+
-`corepack yarn changeset publish`
110
+
111
+
Notes:
112
+
113
+
- CI publishing requires npm trusted publishing (OIDC) configured for this repo.
114
+
- Scoped packages publish with the `experimental` dist-tag by default. If you need to promote a scoped package to `latest`, update the tag manually.
115
+
- If this was a pre-release, remember to reset the [npm `latest` tag](https://www.npmjs.com/package/transloadit?activeTab=versions) to the previous version (replace `x.y.z` with previous version):
0 commit comments