Skip to content

Commit f5dc742

Browse files
committed
style: format gh yaml files
1 parent a01456c commit f5dc742

File tree

6 files changed

+47
-48
lines changed

6 files changed

+47
-48
lines changed
+17-17
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
name: "Check code quality"
1+
name: 'Check code quality'
22

33
runs:
4-
using: "composite"
4+
using: 'composite'
55
steps:
6-
- name: "Check code style"
7-
shell: bash
8-
run: pnpm lint
6+
- name: 'Check code style'
7+
shell: bash
8+
run: pnpm lint
99

10-
- name: "Run tests"
11-
shell: bash
12-
run: pnpm test:ci
10+
- name: 'Run tests'
11+
shell: bash
12+
run: pnpm test:ci
1313

14-
- name: "Build project"
15-
shell: bash
16-
run: pnpm build
14+
- name: 'Build project'
15+
shell: bash
16+
run: pnpm build
1717

18-
- name: "Check publish config"
19-
shell: bash
20-
run: pnpm publint
18+
- name: 'Check publish config'
19+
shell: bash
20+
run: pnpm publint
2121

22-
# - name: 'Build storybook'
23-
# shell: bash
24-
# run: pnpm build:storybook
22+
# - name: 'Build storybook'
23+
# shell: bash
24+
# run: pnpm build:storybook

.github/actions/deploy-storybook/action.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inputs:
2323
default: 'npm run build-storybook'
2424
outputs:
2525
page_url:
26-
description: "The URL of the page"
26+
description: 'The URL of the page'
2727
value: ${{ steps.deploy.outputs.page_url }}
2828

2929
runs:
@@ -44,7 +44,7 @@ runs:
4444
4545
- name: 'upload'
4646
uses: actions/upload-pages-artifact@v3
47-
with:
47+
with:
4848
path: ${{ inputs.path }}
4949

5050
- id: deploy
@@ -62,4 +62,3 @@ runs:
6262
# echo "Check the rest of our actions in the [GitHub Marketplace](https://github.com/marketplace?category=&type=actions&verification=&query=bitovi)!" >> $GITHUB_STEP_SUMMARY
6363
# echo "" >> $GITHUB_STEP_SUMMARY
6464
# echo "You can get help or ask questions on our [Discord Channel](https://discord.gg/zAHn4JBVcX), or set up a free consultation on our [platform engineering website](https://www.bitovi.com/services/devops-consulting/platform-engineering)." >> $GITHUB_STEP_SUMMARY
65-

.github/workflows/check-code-quality.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Check code quality"
1+
name: 'Check code quality'
22

33
on:
44
workflow_dispatch:
@@ -13,13 +13,13 @@ concurrency:
1313

1414
jobs:
1515
checkCodeQuality:
16-
name: "Check code quality"
16+
name: 'Check code quality'
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: "Setup Project"
21+
- name: 'Setup Project'
2222
uses: ./.github/actions/setup-project
2323

24-
- name: "Check code quality"
24+
- name: 'Check code quality'
2525
uses: ./.github/actions/check-code-quality

.github/workflows/publish-branch.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Release dev version from branch"
1+
name: 'Release dev version from branch'
22

33
on:
44
workflow_dispatch:
@@ -19,7 +19,7 @@ env:
1919
2020
jobs:
2121
build:
22-
name: "Build branch"
22+
name: 'Build branch'
2323
runs-on: ubuntu-latest
2424
if: github.sha
2525

@@ -28,16 +28,16 @@ jobs:
2828
with:
2929
fetch-depth: 0 # required to get tags
3030

31-
- name: "Setup Project"
31+
- name: 'Setup Project'
3232
uses: ./.github/actions/setup-project
3333

34-
- name: "Check code quality"
34+
- name: 'Check code quality'
3535
uses: ./.github/actions/check-code-quality
3636

3737
# - name: "Authenticate with GitHub package registry (publish)"
3838
# run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
3939

40-
- name: "Publish tagged component package for selected branch"
40+
- name: 'Publish tagged component package for selected branch'
4141
env:
4242
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -55,4 +55,4 @@ jobs:
5555
token: ${{ secrets.GITHUB_TOKEN }}
5656
edit-mode: replace
5757
body: ${{ env.COMMENT_MESSAGE }}
58-
reactions: "+1"
58+
reactions: '+1'

.github/workflows/upgrade-dependencies.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,70 +2,70 @@ name: Upgrade dependencies
22

33
on:
44
schedule:
5-
- cron: "0 5 * * 1"
5+
- cron: '0 5 * * 1'
66
workflow_dispatch:
77

88
jobs:
99
upgradeDependencies:
10-
name: "Upgrade dependencies"
10+
name: 'Upgrade dependencies'
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: "Setup Project"
15+
- name: 'Setup Project'
1616
uses: ./.github/actions/setup-project
1717

18-
- name: "Upgrade dependencies"
18+
- name: 'Upgrade dependencies'
1919
run: pnpm run upgrade-deps
2020

21-
- name: "Check and fix code style"
21+
- name: 'Check and fix code style'
2222
run: pnpm lint:fix
2323

24-
- name: "Check code quality"
24+
- name: 'Check code quality'
2525
uses: ./.github/actions/check-code-quality
2626

27-
- name: "Prepare artifact"
27+
- name: 'Prepare artifact'
2828
run: tar -czf /tmp/package.tar.gz package.json pnpm-lock.yaml node_modules
2929

30-
- name: "Upload artifact"
30+
- name: 'Upload artifact'
3131
uses: actions/upload-artifact@v4
3232
with:
3333
name: workspace
3434
path: /tmp/package.tar.gz
3535
retention-days: 1
3636

3737
pushUpgrade:
38-
name: "Push upgrade to git"
38+
name: 'Push upgrade to git'
3939
needs: [upgradeDependencies]
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v4
4343

44-
- name: "Download artifact"
44+
- name: 'Download artifact'
4545
uses: actions/download-artifact@v4
4646
with:
4747
name: workspace
4848
path: /tmp
4949

50-
- name: "Extract artifact"
50+
- name: 'Extract artifact'
5151
run: tar -xf /tmp/package.tar.gz -C .
5252

53-
- name: "Setup Project"
53+
- name: 'Setup Project'
5454
uses: ./.github/actions/setup-project
5555

56-
- name: "Check and fix code style"
56+
- name: 'Check and fix code style'
5757
run: pnpm lint:fix
5858

59-
- name: "Check code quality"
59+
- name: 'Check code quality'
6060
uses: ./.github/actions/check-code-quality
6161

62-
- name: "Prepare git"
62+
- name: 'Prepare git'
6363
run: |
6464
git config --global user.email "[email protected]"
6565
git config --global user.name "github-actions"
6666
git branch -u origin/main main
6767
68-
- name: "Push to git"
68+
- name: 'Push to git'
6969
run: |
7070
git add .
7171
if ! git diff-index --quiet HEAD; then

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"build:storybook": "storybook build",
3131
"dev": "pnpm storybook",
3232
"format": "pnpm lint:fix",
33-
"lint": "pnpm typecheck && prettier --check ./src ./stories ./.storybook",
33+
"lint": "pnpm typecheck && prettier --check ./src ./stories ./.storybook ./.github",
3434
"lint:fix": "sort-package-json && pnpm prettify",
3535
"prepare": "husky && sort-package-json",
3636
"prepublishOnly": "pnpm run lint && pnpm run build && publint",
37-
"prettify": "prettier --write ./src ./stories ./.storybook",
37+
"prettify": "prettier --write ./src ./stories ./.storybook ./.github",
3838
"release": "standard-version",
3939
"storybook": "storybook dev -p 6006",
4040
"test": "echo \"No tests yet\"",

0 commit comments

Comments
 (0)