From 2bbb8ad86ca28887612b3131ea3e9d33f79e1990 Mon Sep 17 00:00:00 2001 From: Doug Parker Date: Mon, 27 Feb 2023 16:08:35 -0800 Subject: [PATCH] Updates `tar` command to use new location for `@rules_prerender/declarative_shadow_dom`. Also moves the `tar` to happen prior to publish, so a future mistake here would be caught before NPM is updated. --- .github/workflows/publish.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 255eac3a..31549979 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 @@ -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