Skip to content

Commit

Permalink
Updates tar command to use new location for `@rules_prerender/decla…
Browse files Browse the repository at this point in the history
…rative_shadow_dom`.

Also moves the `tar` to happen prior to publish, so a future mistake here would be caught before NPM is updated.
  • Loading branch information
dgp1130 committed Feb 28, 2023
1 parent 1979c6c commit 2bbb8ad
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
//:rules_prerender_pkg_publish \
//packages/declarative_shadow_dom:pkg_publish
# Tar the NPM packages prior to publish to make sure the file paths are correct.
tar -czf rules_prerender-${{ github.event.inputs.version }}.tar.gz \
dist/bin/rules_prerender_pkg/
tar -czf rules_prerender-declarative_shadow_dom-${{ github.event.inputs.version }}.tar.gz \
dist/bin/packages/declarative_shadow_dom/pkg/
# Publish the packages.
bazel run --config ci --config release //:rules_prerender_pkg_publish
bazel run --config ci --config release //packages/declarative_shadow_dom:pkg_publish
Expand All @@ -80,14 +86,6 @@ jobs:
prerelease: ${{ github.event.inputs.prerelease == 'true' }}
draft: true

# Compress the built NPM package into a `.tar.gz` file.
- name: Tar Packages
run: |
tar -czf rules_prerender-${{ github.event.inputs.version }}.tar.gz \
dist/bin/rules_prerender_pkg/
tar -czf rules_prerender-declarative_shadow_dom-${{ github.event.inputs.version }}.tar.gz \
dist/bin/packages/rules_prerender/declarative_shadow_dom/pkg/
# Upload `rules_prerender` to the GitHub release.
- name: Upload `rules_prerender` to GitHub
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 2bbb8ad

Please sign in to comment.