Skip to content

Commit c199136

Browse files
committed
YAML needs spaces
1 parent 28fe19a commit c199136

File tree

3 files changed

+81
-76
lines changed

3 files changed

+81
-76
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ end_of_line = lf
99
insert_final_newline = true
1010
trim_trailing_whitespace = true
1111

12+
[*.yml]
13+
indent_style = space
14+
indent_size = 4
15+
1216
[package.json]
1317
indent_style = space
1418
indent_size = 2

.github/workflows/ci.yml

+37-36
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
name: CI
22
on: [push, pull_request]
33
jobs:
4-
build:
5-
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
node: ["16", "18", "20"]
9-
name: Node ${{ matrix.node }}
10-
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v4
13-
- name: Set up Node
14-
uses: actions/setup-node@v4
15-
with:
16-
node-version: ${{ matrix.node }}
17-
- name: Install
18-
run: yarn
19-
- name: Build
20-
run: yarn build
21-
- name: Test
22-
run: yarn test
23-
- name: Lint
24-
run: yarn prettier --check .
25-
build-windows:
26-
runs-on: windows-latest
27-
name: Node 20 Windows
28-
- name: Checkout repository
29-
uses: actions/checkout@v4
30-
- name: Set up Node
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: ${{ matrix.node }}
34-
- name: Install
35-
run: yarn
36-
- name: Build
37-
run: yarn build
38-
- name: Test
39-
run: yarn test
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node: ["16", "18", "20"]
9+
name: Node ${{ matrix.node }}
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
- name: Set up Node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- name: Install
18+
run: yarn
19+
- name: Build
20+
run: yarn build
21+
- name: Test
22+
run: yarn test
23+
- name: Lint
24+
run: yarn prettier --check .
25+
build-windows:
26+
runs-on: windows-latest
27+
name: Node 20 Windows
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
- name: Set up Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node }}
35+
- name: Install
36+
run: yarn
37+
- name: Build
38+
run: yarn build
39+
- name: Test
40+
run: yarn test

.github/workflows/publish.yml

+40-40
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
name: Publish
22
on:
3-
push:
4-
branches:
5-
- main
3+
push:
4+
branches:
5+
- main
66
jobs:
7-
npm-publish:
8-
name: npm-publish
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v4
13-
with:
14-
fetch-depth: 0
15-
- id: check
16-
uses: EndBug/[email protected]
17-
with:
18-
diff-search: true
19-
- name: Set up Node
20-
if: steps.check.outputs.changed == 'true'
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: "20"
24-
- name: Install
25-
if: steps.check.outputs.changed == 'true'
26-
run: yarn
27-
- name: Build
28-
if: steps.check.outputs.changed == 'true'
29-
run: yarn build
30-
- name: Test
31-
if: steps.check.outputs.changed == 'true'
32-
run: yarn test
33-
- name: Setup publish token
34-
if: steps.check.outputs.changed == 'true'
35-
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
36-
env:
37-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
38-
- name: Publish
39-
if: steps.check.outputs.changed == 'true'
40-
run: |
41-
yarn publish --non-interactive
42-
git tag v$(jq '.version' package.json -r)
43-
git push --tags
7+
npm-publish:
8+
name: npm-publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- id: check
16+
uses: EndBug/[email protected]
17+
with:
18+
diff-search: true
19+
- name: Set up Node
20+
if: steps.check.outputs.changed == 'true'
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "20"
24+
- name: Install
25+
if: steps.check.outputs.changed == 'true'
26+
run: yarn
27+
- name: Build
28+
if: steps.check.outputs.changed == 'true'
29+
run: yarn build
30+
- name: Test
31+
if: steps.check.outputs.changed == 'true'
32+
run: yarn test
33+
- name: Setup publish token
34+
if: steps.check.outputs.changed == 'true'
35+
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
36+
env:
37+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
38+
- name: Publish
39+
if: steps.check.outputs.changed == 'true'
40+
run: |
41+
yarn publish --non-interactive
42+
git tag v$(jq '.version' package.json -r)
43+
git push --tags

0 commit comments

Comments
 (0)