Skip to content

Commit

Permalink
Merge branch 'main' into versioned
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 16, 2022
2 parents 252716f + 7b096be commit 57b0c08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion deploy/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ program

const published: string[] = [];
try {
if (!('NPM_TOKEN' in process.env))
throw new Error(
"Missing NPM_TOKEN. We won't be able to publish any npm packages."
);
for (const [name, target] of to_publish) {
child_process.execFileSync(target, {
stdio: 'pipe',
Expand All @@ -49,7 +53,8 @@ program
tag_name: syntheticVersion,

body:
body +
(await fs.readFile(body)).toString() +
'\n' +
`This release also includes the following published NPM packages:\n${published
.map(name => ` - ${name}`)
.join('\n')}`,
Expand Down
2 changes: 1 addition & 1 deletion js/npm/package_json/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def package_json(name, targets, template, version):
),
outs = ["package.json"],
tools = [genrule_name],
)
)
2 changes: 1 addition & 1 deletion ts/cmd/svgshot/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ npm_pkg(
major_version = "version/MAJOR",
minor_version = "version/MINOR",
patch_version = "version/PATCH",
version_lock = ".version.lock",
pkg_json_base = "package.template.json",
tgz = "svgshot.tgz",
version_lock = ".version.lock",
visibility = ["//deploy:__subpackages__"],
deps = [":project_ts"],
)

0 comments on commit 57b0c08

Please sign in to comment.