优化构建工作流格式,统一引号风格

This commit is contained in:
JIANG
2026-03-13 17:37:43 +08:00
parent 081e4c4c13
commit 71be47b956
+26 -25
View File
@@ -3,41 +3,42 @@ name: Build and Lint
on: on:
push: push:
tags: tags:
- 'v*' - "v*"
jobs: jobs:
build: build:
runs-on: ubuntu-latest env: runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
strategy: strategy:
matrix: matrix:
node-version: [24.x] node-version: [24.x]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: "npm"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Package Source Code - name: Package Source Code
run: | run: |
tar -czf source-code.tar.gz \ tar -czf source-code.tar.gz \
--exclude='.git*' \ --exclude='.git*' \
--exclude='.github' \ --exclude='.github' \
--exclude='node_modules' \ --exclude='node_modules' \
--exclude='.next' \ --exclude='.next' \
--exclude='dist' \ --exclude='dist' \
--exclude='source-code.tar.gz' \ --exclude='source-code.tar.gz' \
. .
- name: Upload Source Artifact - name: Upload Source Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: source-code name: source-code
path: source-code.tar.gz path: source-code.tar.gz