Skip to content

Commit be7db31

Browse files
author
Wundercorp
committed
.
1 parent 44a5f80 commit be7db31

14 files changed

Lines changed: 45 additions & 0 deletions

RELEASE_WORKFLOW_FIX.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# OpenModel release workflow correction
2+
3+
The Changesets-based `.github/workflows/release.yml` belongs to the standalone BaseUI repository and must not be used in OpenModel.
4+
5+
Remove it from the OpenModel repository:
6+
7+
```bash
8+
rm -f .github/workflows/release.yml
9+
```
10+
11+
Keep these OpenModel workflows instead:
12+
13+
- `.github/workflows/ci.yml`
14+
- `.github/workflows/release-npm.yml`
15+
16+
OpenModel releases npm packages only from version tags such as `v0.1.15`. The tag must equal the version in `apps/cli/package.json`.
17+
18+
Before pushing a release tag:
19+
20+
```bash
21+
npm ci
22+
npm run ci
23+
npm run release:dry-run
24+
npm run release:verify-cli
25+
```
26+
27+
Create and push a release with the existing helper:
28+
29+
```bash
30+
./release.sh patch --package cli --commit --push --tag --yes
31+
```
32+
33+
The `npm` GitHub environment must have npm trusted publishing configured for this repository, or the workflow must be adapted to use an npm token.

apply-release-workflow-fix.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
repository_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
cd "$repository_root"
6+
7+
rm -f .github/workflows/release.yml
8+
9+
printf 'Removed the accidental Changesets release workflow.\n'
10+
printf 'OpenModel now uses .github/workflows/ci.yml and .github/workflows/release-npm.yml.\n'
11+
printf 'Run npm ci && npm run ci before committing.\n'

deploy.sh

100755100644
File mode changed.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"docs:open": "doku open doku.docs.json --site https://doku.sh",
1616
"check": "node scripts/validate-package-lock-registry.mjs && npm run check --workspaces --if-present",
1717
"test": "npm run test --workspaces --if-present",
18+
"ci": "npm run check && npm run test && npm run build:workspaces",
1819
"dev:web": "npm run dev --workspace @wundercorp/openmodel-web",
1920
"dev:cloud": "npm run dev --workspace @wundercorp/openmodel-cloud",
2021
"dev:cli": "node apps/cli/bin/om.mjs",

release.sh

100755100644
File mode changed.

scripts/deploy-aws.sh

100755100644
File mode changed.

scripts/deploy-cloudflare.sh

100755100644
File mode changed.

scripts/deploy.sh

100755100644
File mode changed.

scripts/prepare-npm-release.mjs

100755100644
File mode changed.

scripts/publish-npm.mjs

100755100644
File mode changed.

0 commit comments

Comments
 (0)