Commit Graph
16 Commits
Author SHA1 Message Date
Bogdan Chadkin 898728150f refactor: replace execa with tinyexec (#4400)
No dependencies, windows support, not trying to recreate shell.
2024-11-11 16:20:00 +04:00
Bogdan Chadkin f48bfa4542 build: drop prisma build (#4346)
This shaves a few seconds from all GitHub actions
2024-10-26 19:09:13 +03:00
Bogdan Chadkin 9998f1633f build: replace dotenv with node env loader (#3500)
Refs
- https://nodejs.org/docs/latest/api/process.html#processloadenvfilepath
-
https://nodejs.org/en/learn/command-line/how-to-read-environment-variables-from-nodejs

Here switched from dotenv to node env loader.
Solves both command line and runtime cases.
The only issue is inability to specify --env-file with NODE_OPTIONS.

Also fixed dev migrations by optionally loading .env.development
2024-06-05 18:26:35 +03:00
Bogdan Chadkin 0883212cdb refactor: drop --force flag from migrations (#3447) 2024-05-29 23:39:14 +03:00
Ivan Starkov f2ce532dcb build: Migrate (#3266)
# Migrate

This workflow is triggered only on pushes to the `main`, `*.staging` or
`migrate` branches.
For `*.staging` and `migrate` it specifically checks if the commit
message starts with `::migrate::`,
indicating a migration-related change.

### Example usage:

Execute a commit with a migration flag using:
```
git commit --allow-empty -m "::migrate::test description"
```

### Note:
This setup is a temporary measure. The intention is to transition to a
fully automated publish and release process via GitHub Actions in the
future.

## PS

Show amount of pending migrations so you know do you need to apply it on
staging

<img width="419" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/5077042/0dfaeae5-bb65-4a65-bb6a-29be20d92a7a">
2024-05-01 16:20:11 +03:00
Bogdan Chadkin 5be5abf8b3 Replace minimist with parseArgs (#1868)
Ref https://github.com/webstudio-is/webstudio-builder/issues/1191
2023-06-28 23:22:33 +03:00
Roman Pominov 66e43922cc wrap main into try..catch 2022-09-12 10:10:38 +03:00
Roman Pominov 37413e377b skip-confirmation -> force 2022-09-08 13:50:06 +03:00
Roman Pominov 0979c02b39 add migrate script in root & --skip-confirmation 2022-09-08 11:15:28 +03:00
Roman Pominov 77fd22e205 fix import 2022-09-08 11:15:28 +03:00
Roman Pominov c43f925d31 CliError -> UserError 2022-09-08 11:15:28 +03:00
Roman Pominov 0b9feb0c85 reset command & avoid printing stack for user errs 2022-09-08 11:15:28 +03:00
Roman Pominov e88c9b1035 add resolve 2022-09-05 11:44:38 +03:00
Roman Pominov c1c337c8a5 refactor: split to files 2022-09-05 11:44:38 +03:00
Roman Pominov 8e94a05172 refactor Umzug setup 2022-09-05 11:44:38 +03:00
Roman Pominov 5d93e67860 switch to tsx 2022-09-05 11:44:36 +03:00