@smi-digital/create-smi-app 2.10.0 → 2.11.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/package.json
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env sh
|
|
2
|
-
|
|
2
|
+
# --no-stash: keep eslint --fix / prettier --write running and blocking as normal,
|
|
3
|
+
# but disable lint-staged's backup-stash + hard-revert. That stash/revert step is
|
|
4
|
+
# what silently ate working-tree edits when a task failed (worsened by the required
|
|
5
|
+
# ansible-vault filter round-tripping production.*.env during the rollback). Without
|
|
6
|
+
# it, a failed lint just aborts the commit and leaves your changes untouched.
|
|
7
|
+
npx lint-staged --no-stash
|
|
3
8
|
|
|
4
9
|
# Safety net: never let an unencrypted production env file reach a commit.
|
|
5
10
|
# The Ansible-Vault git filter normally encrypts these as they are staged; this
|
|
@@ -2,13 +2,25 @@ name: PR Validation
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
pull_request:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
|
|
7
|
+
# Superseded pushes to the same PR cancel the previous run (saves minutes).
|
|
8
|
+
concurrency:
|
|
9
|
+
group: pr-validation-${{ github.event.pull_request.number || github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
# Least-privilege token. Do not remove `pull-requests: read` — change
|
|
13
|
+
# detection needs it to list the PR's changed files.
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pull-requests: read
|
|
6
17
|
|
|
7
18
|
jobs:
|
|
8
|
-
|
|
9
|
-
uses: smi-digital/ci-library/.github/workflows/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
ci:
|
|
20
|
+
uses: smi-digital/ci-library/.github/workflows/pr-strapi-astro-pipeline.yml@main
|
|
21
|
+
# Defaults match this scaffold's layout (frontend/ + backend/, Node 24).
|
|
22
|
+
# See the smi-digital/ci-library README for all available inputs
|
|
23
|
+
# (frontend_dir, backend_dir, node_version, audit_level,
|
|
24
|
+
# backend_audit_mode, run_integration, run_sast).
|
|
25
|
+
#
|
|
26
|
+
# Branch protection: require the single check "ci / CI Status" on main.
|