Skip to content

Commit e770503

Browse files
authored
chore: new release script (#9193)
* implement new publish script * remove accidental file
1 parent ed00731 commit e770503

File tree

78 files changed

+3354
-1381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+3354
-1381
lines changed

.github/workflows/alpha-release.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ name: Alpha Releases
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
increment:
7+
description: 'Type of Version Bump To Perform'
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
515
schedule:
616
- cron: '0 20 * * 2' # weekly (Tuesday) 12 PM PST
717
- cron: '0 20 * * 5' # weekly (Friday) 12 PM PST
@@ -37,12 +47,13 @@ jobs:
3747
git config --local user.email 'tomster@emberjs.com'
3848
git config --local user.name 'Ember.js Alpha Releaser'
3949
- name: Publish with script
40-
run: node scripts/publish.js canary --skipSmokeTest
50+
run: bun run publish canary -i ${{ github.event.inputs.increment }}
4151
env:
52+
CI: true
4253
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
4354
- name: Push branch + tag
4455
run: git push origin HEAD --follow-tags
4556
- uses: actions/upload-artifact@v4
4657
with:
4758
name: tarballs
48-
path: ember-data-*.tgz
59+
path: tmp/tarballs/**/*.tgz

RELEASE.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In order to release `ember-data` you must first ensure the following things:
2828
- You have configured your NPM account to use `2fa` (two factor authentication)
2929
- You have logged into your NPM account on your machine (typically sessions preserve nearly forever once you have)
3030
- You have configured `GITHUB_AUTH` token for `lerna-changelog` to be able to gather info for the release notes.
31-
- You have installed `pnpm` and `node` globally (or better, via `volta`)
31+
- You have installed `bun`, `pnpm` and `node` globally (or better, via `volta`)
3232

3333
## Release Order
3434

@@ -104,7 +104,7 @@ git push origin lts-<majorVersion>-<minorVersion> // Note: alternatively, you ca
104104
3. Publish the LTS
105105

106106
```
107-
node ./scripts/publish.js lts
107+
bun run publish lts
108108
```
109109

110110
4. Update the Release Notes on Github
@@ -164,7 +164,7 @@ git push origin lts-<majorVersion>-<minorVersion> // Note: alternatively, you ca
164164
5. Publish the release
165165

166166
```
167-
node ./scripts/publish.js release
167+
bun run publish release
168168
```
169169

170170
6. Update the Release Notes on Github
@@ -205,8 +205,9 @@ git push origin lts-<majorVersion>-<minorVersion> // Note: alternatively, you ca
205205
2. Publish the weekly beta
206206

207207
```
208-
node ./scripts/publish.js beta
208+
bun run publish beta
209209
```
210+
210211
### Canary Releases
211212

212213
1. Checkout the `#main` branch and ensure it is in-sync with `origin/main`.
@@ -224,19 +225,19 @@ git push origin lts-<majorVersion>-<minorVersion> // Note: alternatively, you ca
224225
a. If this is the very first `canary` release for a new minor
225226

226227
```
227-
node ./scripts/publish.js canary --bumpMinor
228+
bun run publish canary -i minor
228229
```
229230

230231
b. If this is the very first `canary` release for a new major
231232

232233
```
233-
node ./scripts/publish.js canary --bumpMajor
234+
bun run publish canary -i major
234235
```
235236

236237
c. For all other "nightly" canary releases
237238

238239
```
239-
node ./scripts/publish.js canary
240+
bun run publish canary
240241
```
241242

242243
Congrats, you are finished!
@@ -248,5 +249,4 @@ New canary versions are published to npm every Tuesday and Friday at 12pm PST by
248249
It will always increment the pre-release version of what's currently in the root `package.json`. For example from `3.25.0-alpha.1` to `3.25.0-alpha.2`. **It requires a human to manually bump minor and major versions and publish**.
249250

250251
To try out the script that will be executed in the GitHub action, use:
251-
`node scripts/publish.js canary --dryRun --force --skipSmokeTest`. The `--dryRun` param will skip auto committing the
252-
version change and publishing.
252+
`bun run publish canary --dry_run --dangerously_force`. The `--dry_run` param will skip auto committing the version change and publishing.

config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@warp-drive/internal-config",
33
"private": true,
4-
"version": "5.5.0-alpha.11",
4+
"version": "5.4.0-alpha.16",
55
"dependencies": {
66
"@babel/core": "^7.23.7",
77
"@babel/eslint-parser": "^7.23.3",

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "root",
3-
"version": "5.5.0-alpha.11",
3+
"version": "5.4.0-alpha.16",
44
"private": true,
55
"repository": {
66
"type": "git",
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"takeoff": "FORCE_COLOR=2 pnpm install --reporter=append-only",
1111
"prepare": "pnpm build",
12+
"publish": "./publish/index.ts",
1213
"build": "turbo _build --log-order=stream --filter=./packages/* --concurrency=1; pnpm run sync:tests",
1314
"sync:tests": "pnpm run --filter=./tests/* -r --workspace-concurrency=1 --if-present _syncPnpm",
1415
"build:docs": "mkdir -p packages/-ember-data/dist && cd ./docs-generator && node ./compile-docs.js",
@@ -38,6 +39,7 @@
3839
},
3940
"devDependencies": {
4041
"bun-types": "^1.0.25",
42+
"@types/semver": "^7.5.6",
4143
"chalk": "^4.1.2",
4244
"co": "^4.6.0",
4345
"command-line-args": "^5.2.1",

packages/-ember-data/package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-data",
3-
"version": "5.5.0-alpha.11",
3+
"version": "5.4.0-alpha.16",
44
"description": "The lightweight reactive data library for JavaScript applications",
55
"repository": {
66
"type": "git",
@@ -16,7 +16,7 @@
1616
"move-dts": "bun ../../scripts/copy-declarations.mjs addon",
1717
"build:types": "tsc --build",
1818
"_build": "bun run build:types && bun run move-dts",
19-
"prepack": "pnpm build && cd ../../ && bun run build:docs",
19+
"prepack": "bun run _build && cd ../../ && bun run build:docs",
2020
"_syncPnpm": "bun run sync-dependencies-meta-injected"
2121
},
2222
"files": [
@@ -48,21 +48,21 @@
4848
"@ember/string": "^3.1.1"
4949
},
5050
"dependencies": {
51-
"@ember-data/adapter": "workspace:5.5.0-alpha.11",
52-
"@ember-data/debug": "workspace:5.5.0-alpha.11",
53-
"@ember-data/graph": "workspace:5.5.0-alpha.11",
54-
"@ember-data/json-api": "workspace:5.5.0-alpha.11",
55-
"@ember-data/legacy-compat": "workspace:5.5.0-alpha.11",
56-
"@ember-data/model": "workspace:5.5.0-alpha.11",
57-
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
58-
"@ember-data/request": "workspace:5.5.0-alpha.11",
59-
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
60-
"@ember-data/serializer": "workspace:5.5.0-alpha.11",
61-
"@ember-data/store": "workspace:5.5.0-alpha.11",
62-
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
51+
"@ember-data/adapter": "workspace:5.4.0-alpha.16",
52+
"@ember-data/debug": "workspace:5.4.0-alpha.16",
53+
"@ember-data/graph": "workspace:5.4.0-alpha.16",
54+
"@ember-data/json-api": "workspace:5.4.0-alpha.16",
55+
"@ember-data/legacy-compat": "workspace:5.4.0-alpha.16",
56+
"@ember-data/model": "workspace:5.4.0-alpha.16",
57+
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
58+
"@ember-data/request": "workspace:5.4.0-alpha.16",
59+
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
60+
"@ember-data/serializer": "workspace:5.4.0-alpha.16",
61+
"@ember-data/store": "workspace:5.4.0-alpha.16",
62+
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
6363
"@ember/edition-utils": "^1.2.0",
6464
"@embroider/macros": "^1.13.4",
65-
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
65+
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
6666
"broccoli-merge-trees": "^4.2.0",
6767
"ember-auto-import": "^2.7.0",
6868
"ember-cli-babel": "^8.2.0",
@@ -123,7 +123,7 @@
123123
"@ember/string": "3.1.1",
124124
"@glimmer/component": "^1.1.2",
125125
"@glimmer/tracking": "^1.1.2",
126-
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
126+
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
127127
"ember-source": "~5.4.0",
128128
"eslint": "^8.56.0"
129129
},

packages/active-record/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ember-data/active-record",
33
"description": "ActiveRecord Format Support for EmberData",
4-
"version": "5.5.0-alpha.11",
4+
"version": "5.4.0-alpha.16",
55
"private": false,
66
"license": "MIT",
77
"author": "Chris Thoburn <runspired@users.noreply.github.com>",
@@ -26,10 +26,10 @@
2626
"pnpm-sync-dependencies-meta-injected": "0.0.10"
2727
},
2828
"peerDependencies": {
29-
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
29+
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
3030
"@ember-data/store": "^4.12.0 || ^5.0.0",
3131
"@ember/string": "^3.1.1",
32-
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
32+
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
3333
"ember-inflector": "^4.0.2"
3434
},
3535
"dependenciesMeta": {
@@ -75,7 +75,7 @@
7575
"build:types": "tsc --build",
7676
"build:client": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
7777
"_build": "bun run build:client && bun run build:types",
78-
"prepack": "pnpm build",
78+
"prepack": "bun run _build",
7979
"_syncPnpm": "bun run sync-dependencies-meta-injected"
8080
},
8181
"ember-addon": {
@@ -93,17 +93,17 @@
9393
"@babel/preset-env": "^7.23.8",
9494
"@babel/preset-typescript": "^7.23.3",
9595
"@babel/runtime": "^7.23.8",
96-
"@ember-data/request": "workspace:5.5.0-alpha.11",
97-
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
98-
"@ember-data/store": "workspace:5.5.0-alpha.11",
99-
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
96+
"@ember-data/request": "workspace:5.4.0-alpha.16",
97+
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
98+
"@ember-data/store": "workspace:5.4.0-alpha.16",
99+
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
100100
"@ember/string": "^3.1.1",
101101
"@embroider/addon-dev": "^4.1.2",
102102
"@glimmer/component": "^1.1.2",
103103
"@rollup/plugin-babel": "^6.0.4",
104104
"@rollup/plugin-node-resolve": "^15.2.3",
105-
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
106-
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
105+
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
106+
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
107107
"ember-inflector": "^4.0.2",
108108
"ember-source": "~5.4.0",
109109
"rollup": "^4.9.6",

packages/adapter/package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ember-data/adapter",
3-
"version": "5.5.0-alpha.11",
3+
"version": "5.4.0-alpha.16",
44
"description": "Provides Legacy JSON:API and REST Implementations of the Adapter Interface for use with @ember-data/store",
55
"keywords": [
66
"ember-addon"
@@ -18,7 +18,7 @@
1818
"build:types": "tsc --build",
1919
"build:client": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
2020
"_build": "bun run build:client && bun run build:types",
21-
"prepack": "pnpm build",
21+
"prepack": "bun run _build",
2222
"_syncPnpm": "bun run sync-dependencies-meta-injected"
2323
},
2424
"ember-addon": {
@@ -47,8 +47,8 @@
4747
}
4848
},
4949
"peerDependencies": {
50-
"@ember-data/legacy-compat": "workspace:5.5.0-alpha.11",
51-
"@ember-data/store": "workspace:5.5.0-alpha.11",
50+
"@ember-data/legacy-compat": "workspace:5.4.0-alpha.16",
51+
"@ember-data/store": "workspace:5.4.0-alpha.16",
5252
"@ember/string": "^3.1.1",
5353
"ember-inflector": "^4.0.2"
5454
},
@@ -88,7 +88,7 @@
8888
}
8989
},
9090
"dependencies": {
91-
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
91+
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
9292
"@embroider/macros": "^1.13.4",
9393
"ember-cli-babel": "^8.2.0",
9494
"ember-cli-test-info": "^1.0.0",
@@ -105,21 +105,21 @@
105105
"@babel/preset-env": "^7.23.8",
106106
"@babel/preset-typescript": "^7.23.3",
107107
"@babel/runtime": "^7.23.8",
108-
"@ember-data/graph": "workspace:5.5.0-alpha.11",
109-
"@ember-data/json-api": "workspace:5.5.0-alpha.11",
110-
"@ember-data/legacy-compat": "workspace:5.5.0-alpha.11",
111-
"@ember-data/request": "workspace:5.5.0-alpha.11",
112-
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
113-
"@ember-data/store": "workspace:5.5.0-alpha.11",
114-
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
108+
"@ember-data/graph": "workspace:5.4.0-alpha.16",
109+
"@ember-data/json-api": "workspace:5.4.0-alpha.16",
110+
"@ember-data/legacy-compat": "workspace:5.4.0-alpha.16",
111+
"@ember-data/request": "workspace:5.4.0-alpha.16",
112+
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
113+
"@ember-data/store": "workspace:5.4.0-alpha.16",
114+
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
115115
"@ember/string": "^3.1.1",
116116
"@embroider/addon-dev": "^4.1.2",
117117
"@glimmer/component": "^1.1.2",
118118
"@rollup/plugin-babel": "^6.0.4",
119119
"@rollup/plugin-node-resolve": "^15.2.3",
120120
"@types/jquery": "^3.5.29",
121-
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
122-
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
121+
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
122+
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
123123
"ember-inflector": "^4.0.2",
124124
"ember-source": "~5.4.0",
125125
"rollup": "^4.9.6",

packages/core-types/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@warp-drive/core-types",
3-
"version": "5.5.0-alpha.11",
3+
"version": "0.0.0-alpha.2",
44
"description": "Provides core logic, utils and types for WarpDrive and EmberData",
55
"keywords": [
66
"ember-addon"
@@ -17,7 +17,7 @@
1717
"build:types": "tsc --build",
1818
"build:client": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
1919
"_build": "bun run build:client && bun run build:types",
20-
"prepack": "pnpm build",
20+
"prepack": "bun run _build",
2121
"_syncPnpm": "bun run sync-dependencies-meta-injected"
2222
},
2323
"files": [
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"dependencies": {
43-
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
43+
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
4444
"ember-cli-babel": "^8.2.0",
4545
"pnpm-sync-dependencies-meta-injected": "0.0.10"
4646
},
@@ -64,7 +64,7 @@
6464
"@glimmer/component": "^1.1.2",
6565
"@rollup/plugin-babel": "^6.0.4",
6666
"@rollup/plugin-node-resolve": "^15.2.3",
67-
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
67+
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
6868
"ember-source": "~5.4.0",
6969
"rollup": "^4.9.6",
7070
"typescript": "^5.3.3",

packages/debug/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ember-data/debug",
3-
"version": "5.5.0-alpha.11",
3+
"version": "5.4.0-alpha.16",
44
"description": "Provides support for the ember-inspector for apps built with Ember and EmberData",
55
"keywords": [
66
"ember-addon"
@@ -18,7 +18,7 @@
1818
"_syncPnpm": "bun run sync-dependencies-meta-injected"
1919
},
2020
"peerDependencies": {
21-
"@ember-data/store": "workspace:5.5.0-alpha.11",
21+
"@ember-data/store": "workspace:5.4.0-alpha.16",
2222
"@ember/string": "^3.1.1"
2323
},
2424
"dependenciesMeta": {
@@ -43,7 +43,7 @@
4343
},
4444
"dependencies": {
4545
"@babel/core": "^7.23.7",
46-
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
46+
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
4747
"@ember/edition-utils": "^1.2.0",
4848
"@embroider/macros": "^1.13.4",
4949
"ember-auto-import": "^2.7.0",
@@ -52,13 +52,13 @@
5252
"webpack": "^5.89.0"
5353
},
5454
"devDependencies": {
55-
"@ember-data/request": "workspace:5.5.0-alpha.11",
56-
"@ember-data/store": "workspace:5.5.0-alpha.11",
57-
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
55+
"@ember-data/request": "workspace:5.4.0-alpha.16",
56+
"@ember-data/store": "workspace:5.4.0-alpha.16",
57+
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
5858
"@ember/string": "^3.1.1",
5959
"@glimmer/component": "^1.1.2",
60-
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
61-
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
60+
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
61+
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
6262
"ember-source": "~5.4.0"
6363
},
6464
"engines": {

0 commit comments

Comments
 (0)