kvalita 1.17.2 → 1.19.0
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/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Use the `--extends` flag in your CI workflow:
|
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
This configuration includes:
|
|
53
|
-
- Branches: `main`, `rc` (prerelease), `beta` (prerelease), `alpha` (prerelease)
|
|
53
|
+
- Branches: `main`, `rc` (prerelease), `beta` (prerelease), `alpha` (prerelease)
|
|
54
54
|
- `conventionalcommits` preset with `feat!:` syntax for breaking changes
|
|
55
55
|
- [npm provenance](https://docs.npmjs.com/generating-provenance-statements) (requires `id-token: write` permission)
|
|
56
56
|
|
|
@@ -73,6 +73,46 @@ Create a `lefthook.json` file in your project root and extend the hooks you need
|
|
|
73
73
|
- `lefthook-typescript.json` - Type checks TypeScript files (pre-commit)
|
|
74
74
|
- `lefthook-commitlint.json` - Validates commit messages (commit-msg)
|
|
75
75
|
|
|
76
|
+
### Shared Workflows
|
|
77
|
+
|
|
78
|
+
Call them instead of copying the job into every repo. `secrets: inherit` passes `CODECOV_TOKEN` and `NPM_TOKEN` through.
|
|
79
|
+
|
|
80
|
+
```yaml
|
|
81
|
+
# .github/workflows/test.yml
|
|
82
|
+
name: Test
|
|
83
|
+
on:
|
|
84
|
+
push:
|
|
85
|
+
branches: [main, alpha, beta, rc]
|
|
86
|
+
pull_request:
|
|
87
|
+
jobs:
|
|
88
|
+
test:
|
|
89
|
+
uses: macieklamberski/kvalita/.github/workflows/shared-test.yml@main
|
|
90
|
+
secrets: inherit
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```yaml
|
|
94
|
+
# .github/workflows/release.yml
|
|
95
|
+
name: Release
|
|
96
|
+
on:
|
|
97
|
+
workflow_dispatch:
|
|
98
|
+
inputs:
|
|
99
|
+
branch:
|
|
100
|
+
description: Branch to release
|
|
101
|
+
required: true
|
|
102
|
+
default: main
|
|
103
|
+
type: choice
|
|
104
|
+
options: [main, rc, beta, alpha]
|
|
105
|
+
jobs:
|
|
106
|
+
release:
|
|
107
|
+
uses: macieklamberski/kvalita/.github/workflows/shared-release.yml@main
|
|
108
|
+
with:
|
|
109
|
+
branch: ${{ inputs.branch }}
|
|
110
|
+
build: true
|
|
111
|
+
secrets: inherit
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
`shared-release` takes `branch`, `build`, `config` and `bun-version`; `shared-test` takes `bun-version`. Every one has a default, so a repo on the common setup passes nothing.
|
|
115
|
+
|
|
76
116
|
### Ignore File Templates
|
|
77
117
|
|
|
78
118
|
Copy the templates into your project root, then add whatever the project itself produces:
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
"main",
|
|
5
5
|
{ "name": "rc", "channel": "rc", "prerelease": "rc" },
|
|
6
6
|
{ "name": "beta", "channel": "beta", "prerelease": "beta" },
|
|
7
|
-
{ "name": "alpha", "channel": "alpha", "prerelease": "alpha" }
|
|
8
|
-
{ "name": "next", "channel": "next", "prerelease": "next" }
|
|
7
|
+
{ "name": "alpha", "channel": "alpha", "prerelease": "alpha" }
|
|
9
8
|
],
|
|
10
9
|
"plugins": [
|
|
11
10
|
[
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
"main",
|
|
5
5
|
{ "name": "rc", "channel": "rc", "prerelease": "rc" },
|
|
6
6
|
{ "name": "beta", "channel": "beta", "prerelease": "beta" },
|
|
7
|
-
{ "name": "alpha", "channel": "alpha", "prerelease": "alpha" }
|
|
8
|
-
{ "name": "next", "channel": "next", "prerelease": "next" }
|
|
7
|
+
{ "name": "alpha", "channel": "alpha", "prerelease": "alpha" }
|
|
9
8
|
],
|
|
10
9
|
"plugins": [
|
|
11
10
|
[
|
package/package.json
CHANGED