Files
VideoPlayer/.github/workflows/ci.yml
db123 e3e5a10ec2
Some checks failed
CI / build-and-publish (push) Failing after 0s
ci: changed ci name and made it use node base img
it now uses node-latest by default and runs everything as shell commands instead of github actions
2026-05-12 10:36:20 +03:30

41 lines
936 B
YAML

name: CI
on:
push:
branches: [main]
jobs:
build-and-publish:
runs-on: node-latest
steps:
- name: Install dependencies
run: npm ci --prefer-offline
- name: Lint
run: npm run lint
- name: Check formatting
run: npm run format:check
- name: Run tests
run: npm test
- name: Build CDN assets and npm package
run: |
npm run build
npm run build:raw
- name: Publish to Gitea npm registry
if: success()
env:
GITEA_HOST: ${{ secrets.GITEA_HOST }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
set -e
OWNER="${{ github.repository_owner }}"
echo "//${GITEA_HOST}/api/packages/${OWNER}/npm/:_authToken=${GITEA_TOKEN}" > .npmrc
npm publish \
--registry "https://${GITEA_HOST}/api/packages/${OWNER}/npm" \
--ignore-scripts