notes icon indicating copy to clipboard operation
notes copied to clipboard

📜 Things to do when publishing the next Babel version

Open nicolo-ribaudo opened this issue 7 years ago • 17 comments

I didn't know where to write these things that I should remember to do when releasing the next version, but I think that an issue in this repo is ok :laughing:

nicolo-ribaudo avatar Dec 19 '18 12:12 nicolo-ribaudo

:heavy_check_mark: Babel 7.2.3

  • [x] Test lerna 3?
  • [x] @babel/preset-env didn't get published last time (https://github.com/babel/babel/pull/9200)
  • [x] @babel/polyfill needs to be force-updated (https://github.com/babel/babel/pull/8618#issuecomment-448245039)
  • [ ] unpkg returns 404 for @babel/standalone 7.2.2 (https://github.com/babel/website/issues/1901#issuecomment-448572603) (seems to be working now?)

nicolo-ribaudo avatar Dec 20 '18 11:12 nicolo-ribaudo

:heavy_check_mark: Babel 7.2.4

  • [x] Figure out why @babel/standalone isn't minified (https://unpkg.com/@babel/[email protected]/babel.min.js)

nicolo-ribaudo avatar Dec 20 '18 11:12 nicolo-ribaudo

:heavy_check_mark: Babel 7.2.5

  • [x] @babel/polyfill hasn't been correctly published (https://github.com/babel/babel/issues/9227). This is for the same reason of https://github.com/babel/notes/issues/78#issuecomment-448968023: Lerna 3 doesn't run prepublish/postpublish by default, and when I fixed it I didn't force-publish @babel/polyfill but only standalone.

nicolo-ribaudo avatar Dec 21 '18 22:12 nicolo-ribaudo

:heavy_check_mark: Babel 7.3.0

  • [x] (NOTE: Only if @babel/helpers changed) Before publishing, run npx lerna changed to check if nicolo-ribaudo/lerna@ef2f1fcd3e2dba9b1c320d265f66768c5e2e1750 works. If it doesn't, @babel/runtime and @babel/runtime-corejs2 need to be force-published as always. NOTE: It didn't work.
  • [x] Instead of running lerna publish, run lerna version + lerna publish from-git to check if it would be possible in the future to run lerna publish from-git automatically from github. NOTE: --force-publish needs to be run with lerna version; --require-scripts with lerna publish.
  • [x] Force-publish @babel/types if needed (babel/babel#9239), merge (https://github.com/babel/babel/pull/9245)
  • [ ] new package:
    • make sure it has access public for scoped npm packages
    • correct npmignore (extra files)
    • check that new dependencies don't add too much size
    • check perf regressions
    • need a basic dogfood of Babel itself before release
    • possible to check proposal usage via repl url?

nicolo-ribaudo avatar Dec 21 '18 22:12 nicolo-ribaudo

:heavy_check_mark: Babel 7.3.2

  • [x] Merge https://github.com/babel/babel/pull/9434 and check if it works. NOTE: It doesn't work, because doesn't fire "push" for tags in public repos.

nicolo-ribaudo avatar Jan 31 '19 16:01 nicolo-ribaudo

:heavy_check_mark: Babel 7.3.3

  • [x] Merge https://github.com/babel/babel/pull/9470 (already tested).
  • [x] Update typescript preset (https://github.com/babel/babel/pull/9497) (needs --force-publish)
  • [x] Run make new-version and then make publish

nicolo-ribaudo avatar Feb 07 '19 20:02 nicolo-ribaudo

:heavy_check_mark: Babel 7.3.4

  • [x] Update CHANGELOG.md using @babel-bot

nicolo-ribaudo avatar Feb 25 '19 23:02 nicolo-ribaudo

:heavy_check_mark: Babel 7.4.0

  • [x] Finally publish using a GitHub action (merge https://github.com/babel/babel/pull/9588)
    • [x] Add NPM_TOKEN to env vars

nicolo-ribaudo avatar Feb 25 '19 23:02 nicolo-ribaudo

:heavy_check_mark: Babel 7.4.3

  • [x] :warning: Be 100% sure that the github action has a valid npm token
  • [x] The "Publish to npm" action will not print anything for a long time (~15 mins). It's still working internally.

nicolo-ribaudo avatar Mar 19 '19 23:03 nicolo-ribaudo

:heavy_check_mark: Babel 7.4.4

  • [x] Check that @babel/polyfill is es5-compatible.
  • [x] Disable "publish to npm" from the GH action; it's too slow.

nicolo-ribaudo avatar Apr 30 '19 21:04 nicolo-ribaudo

✔️ Babel 7.5.0

  • [x] Merge the feature-7.5.0/fsharp-pipeline branch to master

nicolo-ribaudo avatar May 14 '19 20:05 nicolo-ribaudo

Babel 7.6.0

  • [x] Check if the updated release action works

nicolo-ribaudo avatar Jul 21 '19 08:07 nicolo-ribaudo

Babel 7.11.3

  • [x] force-publish @babel/eslint-plugin (https://github.com/babel/babel/pull/11933 updates usage in README)
  • [x] skip publishing @babel/runtime-* (@babel/helpers is not changed)

JLHwung avatar Aug 08 '20 19:08 JLHwung

Babel 7.11.4

  • [x] force-publish @babel/core (#11974 does not touch the contents of @babel/core)
  • [x] skip publishing @babel/runtime-* (The only @babel/helpers change comment-only: https://github.com/babel/babel/pull/11953)

JLHwung avatar Aug 20 '20 18:08 JLHwung

Babel 7.11.5

  • [x] Ignore packages with only change of package.json due to Yarn 2 workspace: protocol, except the following: @babel/cli, @babel/core, @babel/generator, @babel/helper-transform-fixture-runner and @babel/plugin-transform-runtime, @babel/polyfill, @babel/register, @babel/types

JLHwung avatar Aug 31 '20 19:08 JLHwung

Babel 7.12.0

Before make new-version

  • [x] Enable proper version checks in https://github.com/babel/babel/blob/main/packages/babel-plugin-proposal-class-static-block/src/index.js

After publish

  • [x] Deprecate @babel/plugin-syntax-module-attributes
npm deprecate @babel/plugin-syntax-module-attributes "@babel/plugin-syntax-module-attributes is renamed as @babel/plugin-syntax-import-assertions, please check syntax updates and install the new syntax plugin"

JLHwung avatar Oct 14 '20 19:10 JLHwung

Babel 7.12.1

  • [x] Republish every published packages from Babel 7.11.3 to 7.12.0 which is affected by https://github.com/babel/babel/issues/12125. Instead of make new-version, run:
    git pull --rebase
    yarn release-tool version -f @babel/cli -f @babel/compat-data -f @babel/core -f @babel/eslint-parser -f @babel/eslint-plugin -f @babel/eslint-plugin-development-internal -f @babel/eslint-shared-fixtures -f @babel/eslint-tests -f @babel/generator -f @babel/helper-bindify-decorators -f @babel/helper-builder-react-jsx-experimental -f @babel/helper-call-delegate -f @babel/helper-compilation-targets -f @babel/helper-create-class-features-plugin -f @babel/helper-create-regexp-features-plugin -f @babel/helper-explode-assignable-expression -f @babel/helper-explode-class -f @babel/helper-member-expression-to-functions -f @babel/helper-module-transforms -f @babel/helper-remap-async-to-generator -f @babel/helper-replace-supers -f @babel/helper-transform-fixture-test-runner -f @babel/helper-validator-option -f @babel/parser -f @babel/plugin-proposal-class-static-block -f @babel/plugin-proposal-export-namespace-from -f @babel/plugin-proposal-function-bind -f @babel/plugin-proposal-logical-assignment-operators -f @babel/plugin-proposal-nullish-coalescing-operator -f @babel/plugin-proposal-numeric-separator -f @babel/plugin-proposal-optional-chaining -f @babel/plugin-syntax-class-static-block -f @babel/plugin-syntax-import-assertions -f @babel/plugin-syntax-module-string-names -f @babel/plugin-transform-modules-systemjs -f @babel/plugin-transform-react-jsx-development -f @babel/plugin-transform-runtime -f @babel/plugin-transform-typescript -f @babel/polyfill -f @babel/preset-env -f @babel/preset-typescript -f @babel/register -f @babel/runtime -f @babel/runtime-corejs2 -f @babel/runtime-corejs3 -f @babel/standalone -f @babel/traverse -f @babel/types
    

JLHwung avatar Oct 14 '20 22:10 JLHwung