Files
CommonWebComponents/.gitea/workflows/ci.yml
Marc Lorenz 2836ca3530
Some checks failed
CI / test-and-build (push) Has been cancelled
update token name
2026-03-24 11:56:25 +01:00

42 lines
925 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.DEPLOY_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Push dist to release branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config user.name "ci"
git config user.email "ci@limelight"
git checkout -B release
git add -f dist/
git commit -m "release: $(git log main -1 --pretty=%s)" || echo "nothing to commit"
git push origin release --force