Files
Kazuki Yamada 042750cb4e chore(ci): Replace npm run with node --run in workflows
Now that the minimum supported Node.js version is 22, `node --run` is
available everywhere. It avoids the npm process-spawn overhead and
matches the style already used in package.json scripts.

Affects all GitHub Actions workflows that invoke npm scripts and the
website/server Dockerfile bundle step. `npm ci` is left as-is since it
is npm-specific.
2026-05-09 19:08:10 +09:00

65 lines
1.7 KiB
YAML

name: CI Browser Extension
on:
push:
branches: [main]
paths:
- 'browser/**'
- '.tool-versions'
- '.github/workflows/ci-browser.yml'
pull_request:
branches: [main]
paths:
- 'browser/**'
- '.tool-versions'
- '.github/workflows/ci-browser.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
lint-browser:
name: Lint Browser Extension
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .tool-versions
cache: npm
- name: Install browser extension dependencies
working-directory: browser
run: npm ci
- name: Prepare WXT
working-directory: browser
run: node --run prepare
- name: Lint browser extension
working-directory: browser
run: node --run lint
test-browser:
name: Test Browser Extension
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .tool-versions
cache: npm
- name: Install browser extension dependencies
working-directory: browser
run: npm ci
- name: Prepare WXT
working-directory: browser
run: node --run prepare
- name: Test browser extension
working-directory: browser
run: node --run test