Skip to content

Commit

Permalink
[compiler] Publish to latest tag
Browse files Browse the repository at this point in the history
> [!NOTE]
> The `latest` tag is published by default if no tag is specified, which
> is what we had done since the first release of the compiler

In my last PR to auto publish compiler releases I had added the
experimental tag to be used in publishing. However because we had
already previously published to the latest tag (which is non-removable)
this means that the `latest` tag is pinned to an old version. That makes
untagged installs of the compiler default to that old version instead of
whatever is the latest.

This changes the behavior back to what it was before. Since we are still
in the experimental release of the compiler anyway it seems fine to use
the latest tag. When we reach stable, we can update this to only push to
latest for stable releases.

ghstack-source-id: 1809481b452150d6a452d4a77ea5482069bc7c83
Pull Request resolved: #30666
  • Loading branch information
poteto committed Aug 12, 2024
1 parent 25c584f commit fbe81b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/scripts/release/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ async function main() {
'publish',
...opts,
'--registry=https://registry.npmjs.org',
'--tag=experimental',
// For now, since the compiler is experimental only, to simplify installation we push
// to the `latest` tag
'--tag=latest',
],
{
cwd: pkgDir,
Expand Down

0 comments on commit fbe81b2

Please sign in to comment.