优化构建工作流格式,统一引号风格
This commit is contained in:
@@ -3,41 +3,42 @@ name: Build and Lint
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest env:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [24.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "npm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Package Source Code
|
||||
run: |
|
||||
tar -czf source-code.tar.gz \
|
||||
--exclude='.git*' \
|
||||
--exclude='.github' \
|
||||
--exclude='node_modules' \
|
||||
--exclude='.next' \
|
||||
--exclude='dist' \
|
||||
--exclude='source-code.tar.gz' \
|
||||
.
|
||||
- name: Package Source Code
|
||||
run: |
|
||||
tar -czf source-code.tar.gz \
|
||||
--exclude='.git*' \
|
||||
--exclude='.github' \
|
||||
--exclude='node_modules' \
|
||||
--exclude='.next' \
|
||||
--exclude='dist' \
|
||||
--exclude='source-code.tar.gz' \
|
||||
.
|
||||
|
||||
- name: Upload Source Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: source-code
|
||||
path: source-code.tar.gz
|
||||
- name: Upload Source Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: source-code
|
||||
path: source-code.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user