@dialecte/cli 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +12647 -10595
- package/dist/lookups.js +364 -44
- package/dist/schemas/rules.schema.json +23 -1
- package/package.json +3 -1
- package/templates/ci/.github/workflows/_check.yml +31 -0
|
@@ -12,6 +12,9 @@ jobs:
|
|
|
12
12
|
steps:
|
|
13
13
|
- name: Checkout
|
|
14
14
|
uses: actions/checkout@v6
|
|
15
|
+
# the merge commit and its parents: the released changelog check reads the base the change goes onto
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 2
|
|
15
18
|
|
|
16
19
|
- name: Setup Node.js
|
|
17
20
|
uses: actions/setup-node@v6
|
|
@@ -30,6 +33,34 @@ jobs:
|
|
|
30
33
|
- name: Check the package (its check script)
|
|
31
34
|
run: npm run check
|
|
32
35
|
|
|
36
|
+
# a released CHANGELOG section stays as released: judged against the commit the change goes onto - the queue's
|
|
37
|
+
# base (fetched), else the pull request merge ref's first parent; a dispatched run has no change to judge
|
|
38
|
+
- name: Fetch the base the change goes onto
|
|
39
|
+
if: github.event_name == 'merge_group'
|
|
40
|
+
env:
|
|
41
|
+
BASE: ${{ github.event.merge_group.base_sha }}
|
|
42
|
+
run: git fetch --depth=1 origin "$BASE"
|
|
43
|
+
|
|
44
|
+
- name: Released changelog sections stay as released
|
|
45
|
+
if: github.event_name != 'workflow_dispatch'
|
|
46
|
+
env:
|
|
47
|
+
BASE: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || 'HEAD^1' }}
|
|
48
|
+
run: __dialecte_cli__ changelog check --base "$BASE"
|
|
49
|
+
|
|
50
|
+
# the code rules the commit hook runs, here where --no-verify cannot skip them: over the change, against the same
|
|
51
|
+
# base
|
|
52
|
+
- name: Code rules over the change
|
|
53
|
+
if: github.event_name != 'workflow_dispatch'
|
|
54
|
+
env:
|
|
55
|
+
BASE: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || 'HEAD^1' }}
|
|
56
|
+
run: __dialecte_cli__ rules --base "$BASE"
|
|
57
|
+
#{{if skillsCheck}}
|
|
58
|
+
|
|
59
|
+
# the package's skill pages in step with its code (its skills:check script), where --no-verify cannot skip it
|
|
60
|
+
- name: Skill pages in step with the package (its skills:check script)
|
|
61
|
+
run: npm run skills:check
|
|
62
|
+
#{{end}}
|
|
63
|
+
|
|
33
64
|
# the CI files in step with the template of the cli this package runs (dialecte ci sync writes them)
|
|
34
65
|
- name: CI files in step with the cli template
|
|
35
66
|
run: __dialecte_cli__ ci check
|