@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,6 +1,6 @@
1
1
  {
2
2
  "name": "@smi-digital/create-smi-app",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1,5 +1,10 @@
1
1
  #!/usr/bin/env sh
2
- npx lint-staged
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: [ "main" ]
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
- run-ci:
9
- uses: smi-digital/ci-library/.github/workflows/basic-strapi-astro-pipeline.yml@main
10
- with:
11
- # Define your directory paths here.
12
- # If your folders are exactly 'frontend' and 'backend', you can omit these lines entirely.
13
- frontend_dir: './frontend'
14
- backend_dir: './backend'
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.