From 8faababe2fa9ae88d083d8bb6ea758835b3d109c Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:11:42 -0600 Subject: [PATCH] publish npm packed version in github action --- .github/workflows/main.yml | 25 +++++++++++-------------- .gitignore | 3 ++- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f84436..5b4d48c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,13 +41,16 @@ jobs: with: token: ${{ github.token }} - - name: Build Rewriter - run: RELEASE=1 pnpm rewriter:build + - name: Pack Scramjet + run: pnpm pack - - name: Build Scramjet - run: pnpm build + - name: Upload Artifact (pnpm pack) + uses: actions/upload-artifact@v4 + with: + name: packaged-scramjet + path: mercuryworkshop-scramjet-*.tgz - - name: Upload Artifact + - name: Upload Artifact (dist) uses: actions/upload-artifact@v4 with: name: scramjet @@ -73,14 +76,8 @@ jobs: - name: Get artifacts uses: actions/download-artifact@v4 with: - name: scramjet - path: build - - - name: Display structure of downloaded files - run: ls -R - - - name: Zip files - run: zip -r scramjet.zip build/ + name: packaged-scramjet + path: . - name: Release to GitHub uses: ncipollo/release-action@v1 @@ -89,7 +86,7 @@ jobs: tag: latest commit: main body: "${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}" - artifacts: "scramjet.zip" + artifacts: "mercuryworkshop-scramjet-*.tgz" prerelease: true pages: diff --git a/.gitignore b/.gitignore index ac471a6..ef43d76 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ static/wasm.js rewriter/*.js pnpm-lock.yaml playwright-report -test-results \ No newline at end of file +test-results +*.tgz \ No newline at end of file