chore: 升级 GitHub Action 文件相关依赖版本
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -12,11 +12,11 @@ jobs:
|
||||
name: 'Build-Test'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '22'
|
||||
- name: Install Deps
|
||||
run: yarn install
|
||||
- name: Build
|
||||
@@ -27,18 +27,18 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node_version: ['16']
|
||||
node_version: ['22']
|
||||
include:
|
||||
- os: macos-latest
|
||||
node_version: 16
|
||||
node_version: 22
|
||||
- os: windows-latest
|
||||
node_version: 16
|
||||
node_version: 22
|
||||
name: 'Demo-Build-Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Set node version to ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Package Install deps
|
||||
|
6
.github/workflows/publish-to-npm.yml
vendored
6
.github/workflows/publish-to-npm.yml
vendored
@@ -7,11 +7,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '16.x'
|
||||
node-version: '22.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Install dependencies and build
|
||||
run: npm install && npm run build
|
||||
|
Reference in New Issue
Block a user