mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30: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:
|
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
1
.gitignore
vendored
|
@ -14,3 +14,4 @@ rewriter/*.js
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
playwright-report
|
playwright-report
|
||||||
test-results
|
test-results
|
||||||
|
*.tgz
|
Loading…
Add table
Add a link
Reference in a new issue