From 9bec546c2333b5c816e9e8b614e46b37279482b2 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 23 Jul 2020 07:53:26 -0700 Subject: [PATCH] chore: fix release process to replace rc versions --- docs/install.md | 2 +- packages/create/index.js | 2 +- scripts/on-release.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/install.md b/docs/install.md index 2f20745cb0..ebd88a79b4 100644 --- a/docs/install.md +++ b/docs/install.md @@ -32,7 +32,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", sha256 = "5bf77cc2d13ddf9124f4c1453dd96063774d755d4fc75d922471540d1c9a8ea8", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.0.0-rc.0/rules_nodejs-2.0.0-rc.0.tar.gz"], + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.0.0/rules_nodejs-2.0.0.tar.gz"], ) load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") diff --git a/packages/create/index.js b/packages/create/index.js index 78a7ef8510..cec5dcc15d 100644 --- a/packages/create/index.js +++ b/packages/create/index.js @@ -158,7 +158,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "build_bazel_rules_nodejs", sha256 = "5bf77cc2d13ddf9124f4c1453dd96063774d755d4fc75d922471540d1c9a8ea8", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.0.0-rc.0/rules_nodejs-2.0.0-rc.0.tar.gz"], + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.0.0/rules_nodejs-2.0.0.tar.gz"], ) ${pkgMgr === 'yarn' ? yarnInstallCmd : npmInstallCmd}`; diff --git a/scripts/on-release.js b/scripts/on-release.js index 7b11b44d1a..f3a6f799e0 100644 --- a/scripts/on-release.js +++ b/scripts/on-release.js @@ -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\.]*/rules_nodejs-[0-9\.]*.tar.gz', + '-i', 'download/[0-9\.]*(-rc.[0-9]+)?/rules_nodejs-[0-9\.]*(-rc.[0-9]+)?.tar.gz', `download/${version}/rules_nodejs-${version}.tar.gz`, f); shell.sed('-i', 'sha256 = \"[0-9a-f]+\"', `sha256 = "${sha256}"`, f); }