Skip to content

Commit

Permalink
fix: version script should replace beta versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eagle committed Jul 27, 2021
1 parent bba0f02 commit e8f5f06
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "4681ca88d512d57196d064d1441549080d8d17d119174a1229d1717a16a4a489",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0-beta.0/rules_nodejs-4.0.0-beta.0.tar.gz"],
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0-beta.1/rules_nodejs-4.0.0-beta.1.tar.gz"],
)

load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
Expand Down
2 changes: 1 addition & 1 deletion packages/create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def fetch_dependencies():
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "4681ca88d512d57196d064d1441549080d8d17d119174a1229d1717a16a4a489",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0-beta.0/rules_nodejs-4.0.0-beta.0.tar.gz"],
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0-beta.1/rules_nodejs-4.0.0-beta.1.tar.gz"],
)
# rules_nodejs doesn't depend on skylib, but it's a useful dependency anyway.
Expand Down
2 changes: 1 addition & 1 deletion scripts/on-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const sha256 = hash.update(fs.readFileSync(artifact)).digest('hex');

for (const f of ['docs/install.md', 'packages/create/index.js']) {
shell.sed(
'-i', 'download/[0-9\.]*(-rc.[0-9]+)?/rules_nodejs-[0-9\.]*(-rc.[0-9]+)?.tar.gz',
'-i', 'download/[0-9\.]*(-(beta|rc).[0-9]+)?/rules_nodejs-[0-9\.]*(-(beta|rc).[0-9]+)?.tar.gz',
`download/${version}/rules_nodejs-${version}.tar.gz`, f);
shell.sed('-i', 'sha256 = \"[0-9a-f]+\"', `sha256 = "${sha256}"`, f);
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/on-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
const shell = require('shelljs');
const version = require('../package.json').version;

shell.sed('-i', /^VERSION \= \"[0-9\.]*\"/, `VERSION = "${version}"`, 'version.bzl');
shell.sed('-i', /^VERSION \= \"[0-9\.]*(-(beta|rc).[0-9]*)?\"/, `VERSION = "${version}"`, 'version.bzl');
2 changes: 1 addition & 1 deletion version.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
# It will be automatically synced via the npm "version" script
# that is run when running `npm version` during the release
# process. See `Releasing` section in README.md.
VERSION = "4.0.0-beta.0"
VERSION = "4.0.0-beta.1"

0 comments on commit e8f5f06

Please sign in to comment.