Skip to content

Commit 207d317

Browse files
committed
fix: 统一 YAML 文件中的引号样式,优化构建流程
1 parent 336c26e commit 207d317

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ on:
1212
# - cron: '0 4 * * *' # Runs every day at 4am: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
1313

1414
jobs:
15-
1615
build:
1716
name: ${{ matrix.os }}, Node.js v${{ matrix.node }}
1817

1918
strategy:
2019
fail-fast: false
2120
matrix:
2221
os: [windows-latest, ubuntu-latest, macos-latest]
23-
node: ['20.x']
22+
node: ["20.x"]
2423

2524
runs-on: ${{ matrix.os }}
2625
timeout-minutes: 60
@@ -35,12 +34,12 @@ jobs:
3534
uses: actions/setup-node@v1
3635
with:
3736
node-version: ${{ matrix.node }}
38-
registry-url: 'https://registry.npmjs.org'
39-
37+
registry-url: "https://registry.npmjs.org"
38+
4039
- name: Use Python 3.x
4140
uses: actions/setup-python@v2
4241
with:
43-
python-version: '3.x'
42+
python-version: "3.x"
4443

4544
- name: Install
4645
shell: bash
@@ -54,18 +53,18 @@ jobs:
5453
shell: bash
5554
run: |
5655
yarn build
57-
56+
5857
- name: Lint
5958
shell: bash
6059
run: |
6160
yarn lint
62-
61+
6362
- name: Test
6463
if: matrix.tests != 'skip'
6564
shell: bash
6665
run: |
6766
yarn test
68-
67+
6968
publish:
7069
needs: build
7170
if: github.ref == 'refs/heads/main' && github.event_name != 'schedule' # We still publish the manually dispatched workflows: 'workflow_dispatch'.
@@ -84,17 +83,18 @@ jobs:
8483
- name: Use Node.js 20.x
8584
uses: actions/setup-node@v1
8685
with:
87-
node-version: '20.x'
88-
registry-url: 'https://registry.npmjs.org'
86+
node-version: "20.x"
87+
registry-url: "https://registry.npmjs.org"
8988

9089
- name: Use Python 3.x
9190
uses: actions/setup-python@v2
9291
with:
93-
python-version: '3.x'
92+
python-version: "3.x"
9493

9594
- name: Pre-Publish
9695
run: |
9796
yarn --skip-integrity-check --network-timeout 100000
97+
yarn build
9898
yarn docs
9999
env:
100100
NODE_OPTIONS: --max_old_space_size=4096

0 commit comments

Comments
 (0)