Tweak the npm scripts
This commit is contained in:
parent
9057cbd682
commit
834f169a80
2 changed files with 12 additions and 9 deletions
|
|
@ -3,25 +3,28 @@ jobs:
|
||||||
create-artifacts:
|
create-artifacts:
|
||||||
runs-on: act
|
runs-on: act
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: extract version from manifest
|
- name: Extract version from manifest
|
||||||
id: version
|
id: version
|
||||||
run: cat system.json | echo version=`jq -r ".version"` >> "$FORGEJO_OUTPUT"
|
run: cat system.json | echo version=`jq -r ".version"` >> "$FORGEJO_OUTPUT"
|
||||||
|
|
||||||
- name: assert that the tag doesn't exist
|
- name: Assert that the tag doesn't exist
|
||||||
run: node scripts/tagExists.mjs
|
run: node scripts/tagExists.mjs
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{steps.version.output.version}}
|
TAG_NAME: ${{steps.version.output.version}}
|
||||||
|
|
||||||
- name: build compendia
|
- name: Build compendia
|
||||||
run: node scripts/buildCompendia.mjs
|
run: "npm run data:build"
|
||||||
|
|
||||||
- name: compress files
|
- name: Remove compendia source
|
||||||
|
run: "rm -rf packs/**/_source"
|
||||||
|
|
||||||
|
- name: Compress files
|
||||||
run: zip -r release.zip langs module styles templates README.md assets
|
run: zip -r release.zip langs module styles templates README.md assets
|
||||||
|
|
||||||
- name: upload artifacts
|
- name: Upload artifacts
|
||||||
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
"globals": "^15.9.0"
|
"globals": "^15.9.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node scripts/buildCompendia.mjs",
|
"data:build": "node scripts/buildCompendia.mjs",
|
||||||
"extract": "node scripts/extractCompendia.mjs",
|
"data:extract": "node scripts/extractCompendia.mjs",
|
||||||
"link": "node scripts/linkFoundry.mjs",
|
"link": "node scripts/linkFoundry.mjs",
|
||||||
"lint": "eslint --fix",
|
"lint": "eslint --fix",
|
||||||
"lint:nofix": "eslint"
|
"lint:nofix": "eslint"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue