feat: initial
This commit is contained in:
commit
b04a255b4c
17 changed files with 6509 additions and 0 deletions
32
.forgejo/workflows/check-build.yaml
Normal file
32
.forgejo/workflows/check-build.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: "Check build"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
jobs:
|
||||
check-dist:
|
||||
runs-on: stackit-docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: "20"
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Rebuild Action
|
||||
run: npm run build
|
||||
- name: Check for uncommitted changes
|
||||
run: |
|
||||
if [[ -n "$(git status --porcelain dist/)" ]]; then
|
||||
echo "::error::Distribution file is not up to date. Please run 'npm run build' and commit dist/index.js."
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue