mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
publish npm packed version in github action
This commit is contained in:
parent
6799f098a6
commit
8faababe2f
2 changed files with 13 additions and 15 deletions
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
|
@ -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:
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -13,4 +13,5 @@ static/wasm.js
|
|||
rewriter/*.js
|
||||
pnpm-lock.yaml
|
||||
playwright-report
|
||||
test-results
|
||||
test-results
|
||||
*.tgz
|
Loading…
Add table
Add a link
Reference in a new issue