create-prenta 1.9.5 → 1.9.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # create-actuate-cms
2
2
 
3
+ ## 1.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - e771164: Node.js 22 is now the minimum. `@prenta/sections-react` declares `engines.node` `>=22` (was `>=20`; Node 20 reached end of life in April 2026). The database-backup GitHub Actions workflow that `@prenta/cli` and `create-prenta` write now runs on Node 24, as does the scaffolded migration-check workflow, which also moves from the v4 to the v6 `actions/checkout`, `actions/setup-node` and `pnpm/action-setup`. The v4 actions run on GitHub's deprecated Node 20 action runtime. The scaffolded deployment guide lists Node.js 22 or newer.
8
+
3
9
  ## 1.9.5
4
10
 
5
11
  ### Patch Changes
package/dist/scaffold.js CHANGED
@@ -175,7 +175,7 @@ jobs:
175
175
  DIRECT_DATABASE_URL: postgresql://prenta:prenta@localhost:5432/prenta_ci
176
176
 
177
177
  steps:
178
- - uses: actions/checkout@v4
178
+ - uses: actions/checkout@v6
179
179
  `;
180
180
  if (isAstroSplit(options)) {
181
181
  const verifyStep = isMarketingCustom(options)
@@ -188,10 +188,10 @@ jobs:
188
188
  run: pnpm run test:parity
189
189
  `
190
190
  : '';
191
- return `${header} - uses: pnpm/action-setup@v4
192
- - uses: actions/setup-node@v4
191
+ return `${header} - uses: pnpm/action-setup@v6
192
+ - uses: actions/setup-node@v6
193
193
  with:
194
- node-version: 22
194
+ node-version: 24
195
195
  cache: pnpm
196
196
  - name: Install dependencies
197
197
  # Switch to --frozen-lockfile once pnpm-lock.yaml is committed.
@@ -204,9 +204,9 @@ jobs:
204
204
  run: pnpm --filter cms exec prisma migrate deploy
205
205
  ${verifyStep}`;
206
206
  }
207
- return `${header} - uses: actions/setup-node@v4
207
+ return `${header} - uses: actions/setup-node@v6
208
208
  with:
209
- node-version: 20
209
+ node-version: 24
210
210
  cache: npm
211
211
  - name: Install dependencies
212
212
  run: npm ci
@@ -973,7 +973,7 @@ function buildDeploymentGuide(options) {
973
973
  '## Prerequisites',
974
974
  '',
975
975
  // Astro 7 (apps/site) requires Node 22.12+, so the workspace holds to it.
976
- isAstroSplit(options) ? '- Node.js >= 22.12' : '- Node.js >= 20',
976
+ isAstroSplit(options) ? '- Node.js >= 22.12' : '- Node.js >= 22',
977
977
  `- A ${databaseLabel(options.database)} database`,
978
978
  options.platform === 'vercel'
979
979
  ? '- A Vercel account'
@@ -22,7 +22,7 @@
22
22
  * (package name `cms`), so the command runs via `pnpm --filter cms exec`.
23
23
  */
24
24
  export declare const DB_BACKUP_WORKFLOW_PATH = ".github/workflows/db-backup.yml";
25
- export declare const DB_BACKUP_WORKFLOW_YAML = "name: Database backup\non:\n schedule:\n - cron: '30 3 * * *' # nightly 03:30 UTC\n workflow_dispatch:\npermissions:\n contents: read\nconcurrency: { group: db-backup, cancel-in-progress: false }\njobs:\n backup:\n runs-on: ubuntu-latest\n timeout-minutes: 30\n steps:\n - uses: actions/checkout@v6\n - uses: pnpm/action-setup@v6\n - uses: actions/setup-node@v6\n with: { node-version: 22, cache: pnpm }\n - name: Install PostgreSQL 17 client\n run: |\n sudo install -d /usr/share/postgresql-common/pgdg\n sudo curl -fsSL -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc\n echo \"deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" | sudo tee /etc/apt/sources.list.d/pgdg.list\n sudo apt-get update -qq && sudo apt-get install -y -qq postgresql-client-17\n # Bypass pg_wrapper: hosted runners ship an older PostgreSQL cluster\n # that /usr/bin/pg_dump would otherwise select over the 17 binaries.\n echo \"/usr/lib/postgresql/17/bin\" >> \"$GITHUB_PATH\"\n # Fresh scaffolds ship no lockfile yet; switch to --frozen-lockfile once\n # pnpm-lock.yaml is committed.\n - run: pnpm install --no-frozen-lockfile\n - name: Dump, encrypt, upload, prune\n run: pnpm exec prenta db:backup --upload --retention-days 30 --json\n env:\n DIRECT_DATABASE_URL: ${{ secrets.DIRECT_DATABASE_URL }}\n BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}\n BACKUP_ENCRYPTION_KEY: ${{ secrets.BACKUP_ENCRYPTION_KEY }}\n";
25
+ export declare const DB_BACKUP_WORKFLOW_YAML = "name: Database backup\non:\n schedule:\n - cron: '30 3 * * *' # nightly 03:30 UTC\n workflow_dispatch:\npermissions:\n contents: read\nconcurrency: { group: db-backup, cancel-in-progress: false }\njobs:\n backup:\n runs-on: ubuntu-latest\n timeout-minutes: 30\n steps:\n - uses: actions/checkout@v6\n - uses: pnpm/action-setup@v6\n - uses: actions/setup-node@v6\n with: { node-version: 24, cache: pnpm }\n - name: Install PostgreSQL 17 client\n run: |\n sudo install -d /usr/share/postgresql-common/pgdg\n sudo curl -fsSL -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc\n echo \"deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main\" | sudo tee /etc/apt/sources.list.d/pgdg.list\n sudo apt-get update -qq && sudo apt-get install -y -qq postgresql-client-17\n # Bypass pg_wrapper: hosted runners ship an older PostgreSQL cluster\n # that /usr/bin/pg_dump would otherwise select over the 17 binaries.\n echo \"/usr/lib/postgresql/17/bin\" >> \"$GITHUB_PATH\"\n # Fresh scaffolds ship no lockfile yet; switch to --frozen-lockfile once\n # pnpm-lock.yaml is committed.\n - run: pnpm install --no-frozen-lockfile\n - name: Dump, encrypt, upload, prune\n run: pnpm exec prenta db:backup --upload --retention-days 30 --json\n env:\n DIRECT_DATABASE_URL: ${{ secrets.DIRECT_DATABASE_URL }}\n BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}\n BACKUP_ENCRYPTION_KEY: ${{ secrets.BACKUP_ENCRYPTION_KEY }}\n";
26
26
  /** How the scaffolded project installs and runs the CLI. */
27
27
  export type DbBackupWorkflowLayout = 'npm-flat' | 'pnpm-workspace';
28
28
  /** The workflow file to scaffold for the given project layout. */
@@ -38,7 +38,7 @@ jobs:
38
38
  - uses: actions/checkout@v6
39
39
  - uses: pnpm/action-setup@v6
40
40
  - uses: actions/setup-node@v6
41
- with: { node-version: 22, cache: pnpm }
41
+ with: { node-version: 24, cache: pnpm }
42
42
  - name: Install PostgreSQL 17 client
43
43
  run: |
44
44
  sudo install -d /usr/share/postgresql-common/pgdg
@@ -78,7 +78,7 @@ export function generateDbBackupWorkflow(layout) {
78
78
  return replaceAnchor(DB_BACKUP_WORKFLOW_YAML, RUN_LINE, 'run: pnpm --filter cms exec prenta db:backup --upload --retention-days 30 --json');
79
79
  case 'npm-flat': {
80
80
  let out = replaceAnchor(DB_BACKUP_WORKFLOW_YAML, ' - uses: pnpm/action-setup@v6\n', '');
81
- out = replaceAnchor(out, 'with: { node-version: 22, cache: pnpm }', 'with: { node-version: 22, cache: npm }');
81
+ out = replaceAnchor(out, 'with: { node-version: 24, cache: pnpm }', 'with: { node-version: 24, cache: npm }');
82
82
  out = replaceAnchor(out, PNPM_INSTALL_BLOCK, NPM_INSTALL_BLOCK);
83
83
  return replaceAnchor(out, RUN_LINE, 'run: npx prenta db:backup --upload --retention-days 30 --json');
84
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prenta",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "Scaffold a new Prenta CMS project",
5
5
  "repository": {
6
6
  "type": "git",