ci: changed ci name and made it use node base img
Some checks failed
CI / build-and-publish (push) Failing after 0s

it now uses node-latest by default and runs everything as shell commands instead of github actions
This commit is contained in:
2026-05-12 10:36:20 +03:30
parent d0b31f0147
commit e3e5a10ec2
2 changed files with 40 additions and 47 deletions

40
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
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