mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-16 20:21:38 +08:00
chore: unify node version config
This commit is contained in:
@@ -7,12 +7,15 @@ on:
|
||||
branches: [main, develop]
|
||||
workflow_dispatch:
|
||||
|
||||
node_versions: &node_versions
|
||||
- 'lts/*'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: ['lts/*']
|
||||
node-version: *node_versions
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup Node.js ${{ matrix.node-version }}
|
||||
@@ -32,7 +35,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: ['lts/*']
|
||||
node-version: *node_versions
|
||||
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -56,7 +59,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: ['lts/*']
|
||||
node-version: *node_versions
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Setup Node.js ${{ matrix.node-version }}
|
||||
|
||||
Reference in New Issue
Block a user