firq-dev-website/.forgejo/workflows/linting.yml
Firq e4b0b87e9f
All checks were successful
/ get-version (push) Successful in 3s
/ astro-check (push) Successful in 12s
Fixed issue with version in CI
2024-07-20 15:59:15 +02:00

26 lines
738 B
YAML

on:
push:
branches:
- '**'
jobs:
get-version:
runs-on: docker
steps:
- name: Checking Out Repository Code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Check if Version in package.json matches Tag
run: |
VERSION=$(npm pkg get version --workspaces=false | tr -d \")
echo "Version is: '$VERSION'";
astro-check:
runs-on: docker
container: forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Install packages
run: npm i
- name: Run astro check (linting + static analysis)
run: npm run astro check