publish npm packed version in github action

This commit is contained in:
Percs 2024-11-08 11:11:42 -06:00
parent 6799f098a6
commit 8faababe2f
2 changed files with 13 additions and 15 deletions

View file

@ -41,13 +41,16 @@ jobs:
with: with:
token: ${{ github.token }} token: ${{ github.token }}
- name: Build Rewriter - name: Pack Scramjet
run: RELEASE=1 pnpm rewriter:build run: pnpm pack
- name: Build Scramjet - name: Upload Artifact (pnpm pack)
run: pnpm build 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 uses: actions/upload-artifact@v4
with: with:
name: scramjet name: scramjet
@ -73,14 +76,8 @@ jobs:
- name: Get artifacts - name: Get artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: scramjet name: packaged-scramjet
path: build path: .
- name: Display structure of downloaded files
run: ls -R
- name: Zip files
run: zip -r scramjet.zip build/
- name: Release to GitHub - name: Release to GitHub
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
@ -89,7 +86,7 @@ jobs:
tag: latest tag: latest
commit: main commit: main
body: "${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}" body: "${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}"
artifacts: "scramjet.zip" artifacts: "mercuryworkshop-scramjet-*.tgz"
prerelease: true prerelease: true
pages: pages:

1
.gitignore vendored
View file

@ -14,3 +14,4 @@ rewriter/*.js
pnpm-lock.yaml pnpm-lock.yaml
playwright-report playwright-report
test-results test-results
*.tgz