From 5ba71eddf45febd7d46fc689befdbaade8715464 Mon Sep 17 00:00:00 2001 From: Andrew Benbow Date: Thu, 7 Aug 2025 15:24:12 -0400 Subject: [PATCH] feat: create compiled release --- .changeset/funny-monkeys-grin.md | 7 +++++++ .github/workflows/release.yml | 11 +++++++++++ .gitignore | 1 + 3 files changed, 19 insertions(+) create mode 100644 .changeset/funny-monkeys-grin.md diff --git a/.changeset/funny-monkeys-grin.md b/.changeset/funny-monkeys-grin.md new file mode 100644 index 00000000..1bd16956 --- /dev/null +++ b/.changeset/funny-monkeys-grin.md @@ -0,0 +1,7 @@ +--- +'@qwik.dev/partytown': minor +--- + +feat: Creates a compiled release of the lib directory. + +This creates a compiled release of the `lib` directory for use by integration builders and HTML-only developers. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edbe60be..ec08d11c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,3 +59,14 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Tar and gzip the lib directory + shell: bash + run: tar -zcvf lib.tar lib && gzip lib.tar + + - name: Upload release asset + user: actions4gh/setup-gh@v1 + if: github.ref_type == 'tag' + run : gh release ${{ github.ref }} upload './lib.tar.gz#Compiled lib' + env: + GH_REPO: ${{ github.repository }} diff --git a/.gitignore b/.gitignore index b6f2b14e..f54f3783 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ node_modules/ .idea .history tests/integrations/load-scripts-on-main-thread/snippet.js +lib.tar.gz