Skip to content

Commit

Permalink
YAML needs spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jan 14, 2024
1 parent 28fe19a commit c199136
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 76 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_style = space
indent_size = 4

[package.json]
indent_style = space
indent_size = 2
73 changes: 37 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18", "20"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Lint
run: yarn prettier --check .
build-windows:
runs-on: windows-latest
name: Node 20 Windows
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18", "20"]
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Lint
run: yarn prettier --check .
build-windows:
runs-on: windows-latest
name: Node 20 Windows
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
80 changes: 40 additions & 40 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
name: Publish
on:
push:
branches:
- main
push:
branches:
- main
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: check
uses: EndBug/version-check@v2.1.0
with:
diff-search: true
- name: Set up Node
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
if: steps.check.outputs.changed == 'true'
run: yarn
- name: Build
if: steps.check.outputs.changed == 'true'
run: yarn build
- name: Test
if: steps.check.outputs.changed == 'true'
run: yarn test
- name: Setup publish token
if: steps.check.outputs.changed == 'true'
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish
if: steps.check.outputs.changed == 'true'
run: |
yarn publish --non-interactive
git tag v$(jq '.version' package.json -r)
git push --tags
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: check
uses: EndBug/version-check@v2.1.0
with:
diff-search: true
- name: Set up Node
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install
if: steps.check.outputs.changed == 'true'
run: yarn
- name: Build
if: steps.check.outputs.changed == 'true'
run: yarn build
- name: Test
if: steps.check.outputs.changed == 'true'
run: yarn test
- name: Setup publish token
if: steps.check.outputs.changed == 'true'
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish
if: steps.check.outputs.changed == 'true'
run: |
yarn publish --non-interactive
git tag v$(jq '.version' package.json -r)
git push --tags

0 comments on commit c199136

Please sign in to comment.