ivanhanloth_Obsidian-Articl.../.github/workflows/lint.yml
Ivan Hanloth 73c48c9381
feat: create action workflow (#1)
* ci: fix pnpm missing

* ci: fix npm cache error

* ci: add artifact upload

* ci: fix ci undefined

* feat: update package dependencies

* fix: fix ci error

* fix:fix build error

* fix: fix eslint

* fix eslint

* ci: fix eslint error in cicd

* chore: downgrade and pin eslint to v9 to fix typescript-eslint compatibility

* fix: import process module in deploy script

* fix: add JavaScript output files to tsconfig include

* fix: update build output directory from 'out' to 'dist' in workflows and configuration
2026-05-29 14:17:50 +01:00

41 lines
1 KiB
YAML

name: Node.js build
on:
workflow_dispatch:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm run ci
- run: pnpm build --if-present
- run: pnpm lint
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: lint-results
path: dist/