Skip to content

Commit

Permalink
Updates publish script to use new location for `@rules_prerender/decl…
Browse files Browse the repository at this point in the history
…arative_shadow_dom` package.

Also builds all the packages up front, so we don't publish one package and then discover that the label changed for second and fail part way through.
  • Loading branch information
dgp1130 committed Feb 27, 2023
1 parent f32b3d5 commit 1979c6c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,16 @@ jobs:
# Append NPM token to `.npmrc` file.
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" >> .npmrc
# Publish the package.
# Build all the packages to make sure they are buildable and the labels haven't
# changed. This helps prevent publishing one package and then failing to build
# the next one.
bazel build --config ci --config release \
//:rules_prerender_pkg_publish \
//packages/declarative_shadow_dom:pkg_publish
# Publish the packages.
bazel run --config ci --config release //:rules_prerender_pkg_publish
bazel run --config ci --config release //packages/rules_prerender/declarative_shadow_dom:pkg_publish
bazel run --config ci --config release //packages/declarative_shadow_dom:pkg_publish
# Remove the token from the `.npmrc` file, it should no longer be needed.
sed -i "/${{ secrets.NPM_ACCESS_TOKEN }}/d" .npmrc
Expand Down

0 comments on commit 1979c6c

Please sign in to comment.