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
{{ message }}
Repository navigation
Commit 8d08925
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: RELEASE.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ plotly.js follows [semver](https://semver.org). A release that adds functionalit
7
7
Two GitHub Actions workflows do the release:
8
8
9
9
1.[`prepare-release`](.github/workflows/prepare-release.yml) builds the release files and opens a release pull request. A maintainer starts it by hand.
10
-
2.[`publish-release`](.github/workflows/publish-release.yml) starts when the release pull request merges. It tags the merge commit, waits for approval, and then publishes the release to npm, the Plotly CDN, and GitHub.
10
+
2.[`publish-release`](.github/workflows/publish-release.yml) starts when the release pull request merges. It builds and packs the release files, waits for approval, and then tags the merge commit and publishes the release to npm, the Plotly CDN, and GitHub.
11
11
12
12
The workflows tag and publish nothing before the approval. Until then, you can stop a release at no cost. Close the pull request, delete the branch, and start again.
13
13
@@ -34,10 +34,9 @@ The workflows tag and publish nothing before the approval. Until then, you can s
34
34
> [!CAUTION]
35
35
> If `main` changes before you merge, the release includes those changes, but the new `CHANGELOG.md` section does not list them. Their draftlogs stay for the next release. To list them in this release, close the pull request, delete the branch, and run `prepare-release` again.
36
36
37
-
8. Open the [`publish-release`](https://github.com/plotly/plotly.js/actions/workflows/publish-release.yml) run for the merge commit
38
-
9. Click "Review deployments", select `release`, and approve. The workflow then does these steps:
37
+
8. Open the [`publish-release`](https://github.com/plotly/plotly.js/actions/workflows/publish-release.yml) run for the merge commit. Its `build` job runs `npm run build` on the merge commit and packs every release file. The published files come from this build, not from the committed `dist/`.
38
+
9. Click "Review deployments", select `release`, and approve. The `publish` job then does these steps:
39
39
- It tags the merge commit `vX.Y.Z`
40
-
- It runs `npm run build` on the tagged commit. The published files come from this build, not from the committed `dist/`.
41
40
- It publishes `plotly.js` and the 19 bundle and locale packages to npm, with the dist-tag `latest`, or `rc` for a release candidate
42
41
- It uploads the bundles to the Plotly CDN. Then it makes sure that the CDN serves `plotly-X.Y.Z.js` and `plotly-X.Y.Z.min.js`.
43
42
- It creates the GitHub release from the CHANGELOG section
@@ -88,7 +87,7 @@ Do not upload a maintenance release to the CDN. This policy encourages every use
88
87
89
88
## If a publish step fails
90
89
91
-
Every step in the publish job skips the work that is already done. The npm and GitHub steps make sure that the version is not already published before they publish. The CDN step uploads the files again and overwrites them.
90
+
Every step in the `publish` job skips the work that is already done. The job reuses the files from the `build` job of the same run. The npm and GitHub steps make sure that the version is not already published before they publish. The CDN step uploads the files again and overwrites them.
92
91
93
92
1. Read the failed step in the `publish-release` run, and fix the cause. For example, renew a credential or wait for an npm outage to end.
0 commit comments