Skip to content

Commit 32e9634

Browse files
authored
Update Build, Dependencies and Workflows (#4)
1 parent 4040393 commit 32e9634

24 files changed

+28666
-30003
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @smashedr

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: cssnr

.github/ISSUE_TEMPLATE/0-bug.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "⚠️ Report an Issue"
2-
description: "Something Not Working Right? Please let us know..."
2+
description: "Please let us know if something is not working right..."
33
labels: ["bug"]
44
assignees:
55
- smashedr
@@ -10,17 +10,17 @@ body:
1010
validations:
1111
required: false
1212
attributes:
13-
label: Repo Link
14-
description: Please provide a link to the repository or workflow you are having issues with if possible.
13+
label: URL
14+
description: Please provide a link to the repository or workflow in question if possible.
1515

1616
- type: textarea
1717
id: description
1818
validations:
1919
required: true
2020
attributes:
21-
label: Details
22-
description: Please describe the issue you are experiencing and how to reproduce.
23-
placeholder: Provide as many details as you can...
21+
label: Issue Description
22+
description: Please describe the issue you are experiencing and how it can be reproduced.
23+
placeholder: Provide as many details as possible...
2424

2525
- type: textarea
2626
id: logs
@@ -29,9 +29,11 @@ body:
2929
attributes:
3030
label: Log Output
3131
description: Paste any relevant logs or output in this box.
32+
placeholder: This text is automatically wrapped in a code block.
3233
render: shell
3334

3435
- type: markdown
3536
attributes:
3637
value: |
37-
All issues/bugs that we can verify will be fixed. Thank you for taking the time to make this report!
38+
Any issues or bugs that can be verified will be fixed!
39+
Thank you very much for taking the time to make this report...

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: "💡 Request a Feature"
4-
about: Request a New Feature or Enhancement in the Discussions.
4+
about: Request a new feature or enhancement in a discussions.
55
url: https://github.com/cssnr/json-key-value-check-action/discussions/new?category=feature-requests
66

77
- name: "❔ Ask a Question"
8-
about: Ask a General Question or start a Discussions.
8+
about: Ask a general question or start a discussions.
99
url: https://github.com/cssnr/json-key-value-check-action/discussions/new?category=q-a
1010

1111
- name: "💬 Join Discord"
12-
about: Chat with us about Issues, Features, Questions and More.
12+
about: Chat with us about general questions, issues or suggestions.
1313
url: https://discord.gg/wXy6m2X8wY
1414

1515
- name: "📝 Submit Feedback"
16-
about: Send General Feedback.
17-
url: https://cssnr.github.io/feedback/?app=Update%20JSON%20Value
16+
about: Send general feedback through the website.
17+
url: https://cssnr.github.io/feedback

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Overview
2+
3+
4+
5+
## Checklist
6+
<!-- Do NOT remove tasks and append any custom tasks -->
7+
- [ ] Verify the Required Checks are Passing
8+
- [ ] Document changes in the [README.md](../blob/master/README.md) (for new features)

.github/workflows/labeler.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "PR Labeler"
2+
3+
on:
4+
pull_request_target:
5+
6+
permissions:
7+
pull-requests: write
8+
9+
jobs:
10+
labeler:
11+
name: "Labeler"
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: "Checkout Configs"
17+
uses: actions/checkout@v5
18+
with:
19+
repository: cssnr/configs
20+
ref: master
21+
path: .configs
22+
sparse-checkout-cone-mode: false
23+
sparse-checkout: |
24+
labels/**
25+
26+
- name: "Debug"
27+
continue-on-error: true
28+
run: |
29+
echo "::group::labels.yaml"
30+
cat .configs/labels/labels.yaml
31+
echo "::endgroup::"
32+
33+
echo "::group::labeler.yaml"
34+
cat .configs/labels/labeler.yaml
35+
echo "::endgroup::"
36+
37+
- name: "Label Creator"
38+
continue-on-error: true
39+
uses: cssnr/label-creator-action@master
40+
with:
41+
file: .configs/labels/labels.yaml
42+
43+
- name: "Labeler"
44+
uses: actions/labeler@v6
45+
with:
46+
sync-labels: true
47+
configuration-path: .configs/labels/labeler.yaml

.github/workflows/lint.yaml

Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
push:
77
branches: [master]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
lint:
1115
name: "Lint"
@@ -14,60 +18,60 @@ jobs:
1418

1519
steps:
1620
- name: "Checkout"
17-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
1822

19-
- name: "Setup Node 22"
20-
uses: actions/setup-node@v4
23+
- name: "Setup Node 24"
24+
uses: actions/setup-node@v5
2125
with:
22-
node-version: 22
23-
#cache: npm
26+
node-version: 24
2427

2528
- name: "Install"
2629
id: install
2730
run: |
28-
npm install
31+
npm ci
2932
3033
- name: "ESLint"
31-
if: ${{ always() }}
34+
id: eslint
35+
if: ${{ !cancelled() }}
3236
run: |
33-
npm run lint
37+
npm run lint:report
3438
3539
- name: "Prettier"
36-
if: ${{ always() }}
40+
if: ${{ !cancelled() }}
3741
run: |
38-
npm run prettier
39-
40-
build:
41-
name: "Build"
42-
runs-on: ubuntu-latest
43-
timeout-minutes: 5
44-
45-
steps:
46-
- name: "Checkout"
47-
uses: actions/checkout@v4
42+
npm run prettier:check
4843
49-
- name: "Setup Node 22"
50-
uses: actions/setup-node@v4
51-
with:
52-
node-version: 22
53-
#cache: npm
54-
55-
- name: "Install"
44+
- name: "Yamllint"
45+
if: ${{ !cancelled() }}
46+
env:
47+
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
5648
run: |
57-
npm install
49+
echo "::group::List Files"
50+
yamllint -d '${{ env.CONFIG }}' --list-files .
51+
echo "::endgroup::"
52+
yamllint -d '${{ env.CONFIG }}' .
5853
59-
- name: "Build"
60-
run: |
61-
npm run build
54+
#- name: "Actionlint"
55+
# if: ${{ !cancelled() }}
56+
# run: |
57+
# echo "::group::Download"
58+
# loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
59+
# echo "loc: ${loc}"
60+
# tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
61+
# echo "tag: ${tag}"
62+
# url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
63+
# echo "url: ${url}"
64+
# curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
65+
# file "${RUNNER_TEMP}/actionlint"
66+
# "${RUNNER_TEMP}/actionlint" --version
67+
# echo "::endgroup::"
68+
# "${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
6269

63-
- name: "Verify"
64-
run: |
65-
git status --porcelain dist/
66-
if [ ! -d "dist" ];then
67-
echo "Missing dist directory, run: npm build"
68-
exit 1
69-
fi
70-
if [ -n "$(git status --porcelain dist)" ];then
71-
echo "Build was not run, run: npm build"
72-
exit 1
73-
fi
70+
- name: "Check Build Action"
71+
if: ${{ !cancelled() }}
72+
uses: cssnr/check-build-action@master
73+
74+
- name: "ESLint Annotate"
75+
if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
76+
continue-on-error: true
77+
uses: ataylorme/eslint-annotate-action@v3

.github/workflows/mirror.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches: ["**"]
77
tags: ["**"]
88

9+
concurrency:
10+
group: ${{ github.workflow }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
mirror:
1115
name: "Mirror"
@@ -14,7 +18,7 @@ jobs:
1418

1519
steps:
1620
- name: "Checkout"
17-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
1822
with:
1923
fetch-depth: 0
2024

.github/workflows/pull.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Pull"
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
pull:
12+
name: "Pull"
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
permissions:
16+
pull-requests: write
17+
18+
steps:
19+
- name: "Checkout"
20+
uses: actions/checkout@v5
21+
22+
- name: "NPM Outdated Check"
23+
continue-on-error: true
24+
uses: cssnr/npm-outdated-action@master

.github/workflows/release.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,28 @@ jobs:
1414

1515
steps:
1616
- name: "Update Tags"
17+
id: tags
1718
uses: cssnr/update-version-tags-action@v1
19+
20+
- name: "Debug Tags"
21+
continue-on-error: true
22+
run: |
23+
echo "github.ref_name: ${{ github.ref_name }}"
24+
echo "steps.tags.outputs.tags: ${{ steps.tags.outputs.tags }}"
25+
26+
- name: "Update Release Notes Action"
27+
continue-on-error: true
28+
uses: smashedr/update-release-notes-action@master
29+
with:
30+
tags: ${{ steps.tags.outputs.tags }}
31+
location: tail
32+
33+
- name: "Package Changelog Action"
34+
continue-on-error: true
35+
uses: cssnr/package-changelog-action@v1
36+
37+
- name: "Send Failure Notification"
38+
if: ${{ failure() }}
39+
uses: sarisia/actions-status-discord@v1
40+
with:
41+
webhook: ${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)