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'
|
name: 'Build-Test'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Use Node.js
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '22'
|
||||||
- name: Install Deps
|
- name: Install Deps
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -27,18 +27,18 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
node_version: ['16']
|
node_version: ['22']
|
||||||
include:
|
include:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
node_version: 16
|
node_version: 22
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
node_version: 16
|
node_version: 22
|
||||||
name: 'Demo-Build-Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
|
name: 'Demo-Build-Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set node version to ${{ matrix.node_version }}
|
- name: Set node version to ${{ matrix.node_version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node_version }}
|
node-version: ${{ matrix.node_version }}
|
||||||
- name: Package Install deps
|
- 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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '22.x'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- name: Install dependencies and build
|
- name: Install dependencies and build
|
||||||
run: npm install && npm run build
|
run: npm install && npm run build
|
||||||
|
Reference in New Issue
Block a user