initial ci
All checks were successful
ci / ci (push) Successful in 24s

This commit is contained in:
Arindy 2025-03-01 19:28:34 +01:00
parent ad372a6271
commit 69c2fa995c
2 changed files with 42 additions and 0 deletions

41
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,41 @@
name: ci
on: [ push, pull_request ]
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
statuses: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- id: version
name: version
run: |
version=`npm --silent run version`
echo "VERSION=$version" >> ${GITHUB_OUTPUT}
- name: echo version
run: echo ${{ steps.version.outputs.VERSION }}
- name: npm install
run: npm install
- name: build
run: npm run build
#
# - name: Archive Release
# if: github.ref_name == main
# uses: thedoctor0/zip-release@0.7.5
# with:
# type: 'zip'
# filename: 'release.zip'
# directory: 'dist'

View File

@ -8,6 +8,7 @@
"build": "npm run clean && tsc && vite build", "build": "npm run clean && tsc && vite build",
"watch": "tsc && vite build --watch", "watch": "tsc && vite build --watch",
"copy": "sudo rsync -avP dist/ .foundry/data/Data/modules/dice-tower/", "copy": "sudo rsync -avP dist/ .foundry/data/Data/modules/dice-tower/",
"version": "echo $npm_package_version",
"buildCopy": "npm run build && npm run copy" "buildCopy": "npm run build && npm run copy"
}, },
"devDependencies": { "devDependencies": {