Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: new release script #9193

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: Alpha Releases

on:
workflow_dispatch:
inputs:
increment:
description: 'Type of Version Bump To Perform'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
schedule:
- cron: '0 20 * * 2' # weekly (Tuesday) 12 PM PST
- cron: '0 20 * * 5' # weekly (Friday) 12 PM PST
Expand Down Expand Up @@ -37,12 +47,13 @@ jobs:
git config --local user.email '[email protected]'
git config --local user.name 'Ember.js Alpha Releaser'
- name: Publish with script
run: node scripts/publish.js canary --skipSmokeTest
run: bun run publish canary -i ${{ github.event.inputs.increment }}
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Push branch + tag
run: git push origin HEAD --follow-tags
- uses: actions/upload-artifact@v4
with:
name: tarballs
path: ember-data-*.tgz
path: tmp/tarballs/**/*.tgz
18 changes: 9 additions & 9 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ In order to release `ember-data` you must first ensure the following things:
- You have configured your NPM account to use `2fa` (two factor authentication)
- You have logged into your NPM account on your machine (typically sessions preserve nearly forever once you have)
- You have configured `GITHUB_AUTH` token for `lerna-changelog` to be able to gather info for the release notes.
- You have installed `pnpm` and `node` globally (or better, via `volta`)
- You have installed `bun`, `pnpm` and `node` globally (or better, via `volta`)

## Release Order

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

```
node ./scripts/publish.js lts
bun run publish lts
```

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

```
node ./scripts/publish.js release
bun run publish release
```

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

```
node ./scripts/publish.js beta
bun run publish beta
```

### Canary Releases

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

```
node ./scripts/publish.js canary --bumpMinor
bun run publish canary -i minor
```

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

```
node ./scripts/publish.js canary --bumpMajor
bun run publish canary -i major
```

c. For all other "nightly" canary releases

```
node ./scripts/publish.js canary
bun run publish canary
```

Congrats, you are finished!
Expand All @@ -248,5 +249,4 @@ New canary versions are published to npm every Tuesday and Friday at 12pm PST by
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**.

To try out the script that will be executed in the GitHub action, use:
`node scripts/publish.js canary --dryRun --force --skipSmokeTest`. The `--dryRun` param will skip auto committing the
version change and publishing.
`bun run publish canary --dry_run --dangerously_force`. The `--dry_run` param will skip auto committing the version change and publishing.
2 changes: 1 addition & 1 deletion config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@warp-drive/internal-config",
"private": true,
"version": "5.5.0-alpha.11",
"version": "5.4.0-alpha.16",
"dependencies": {
"@babel/core": "^7.23.7",
"@babel/eslint-parser": "^7.23.3",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "5.5.0-alpha.11",
"version": "5.4.0-alpha.16",
"private": true,
"repository": {
"type": "git",
Expand All @@ -9,6 +9,7 @@
"scripts": {
"takeoff": "FORCE_COLOR=2 pnpm install --reporter=append-only",
"prepare": "pnpm build",
"publish": "./publish/index.ts",
"build": "turbo _build --log-order=stream --filter=./packages/* --concurrency=1; pnpm run sync:tests",
"sync:tests": "pnpm run --filter=./tests/* -r --workspace-concurrency=1 --if-present _syncPnpm",
"build:docs": "mkdir -p packages/-ember-data/dist && cd ./docs-generator && node ./compile-docs.js",
Expand Down Expand Up @@ -38,6 +39,7 @@
},
"devDependencies": {
"bun-types": "^1.0.25",
"@types/semver": "^7.5.6",
"chalk": "^4.1.2",
"co": "^4.6.0",
"command-line-args": "^5.2.1",
Expand Down
32 changes: 16 additions & 16 deletions packages/-ember-data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-data",
"version": "5.5.0-alpha.11",
"version": "5.4.0-alpha.16",
"description": "The lightweight reactive data library for JavaScript applications",
"repository": {
"type": "git",
Expand All @@ -16,7 +16,7 @@
"move-dts": "bun ../../scripts/copy-declarations.mjs addon",
"build:types": "tsc --build",
"_build": "bun run build:types && bun run move-dts",
"prepack": "pnpm build && cd ../../ && bun run build:docs",
"prepack": "bun run _build && cd ../../ && bun run build:docs",
"_syncPnpm": "bun run sync-dependencies-meta-injected"
},
"files": [
Expand Down Expand Up @@ -48,21 +48,21 @@
"@ember/string": "^3.1.1"
},
"dependencies": {
"@ember-data/adapter": "workspace:5.5.0-alpha.11",
"@ember-data/debug": "workspace:5.5.0-alpha.11",
"@ember-data/graph": "workspace:5.5.0-alpha.11",
"@ember-data/json-api": "workspace:5.5.0-alpha.11",
"@ember-data/legacy-compat": "workspace:5.5.0-alpha.11",
"@ember-data/model": "workspace:5.5.0-alpha.11",
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
"@ember-data/request": "workspace:5.5.0-alpha.11",
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
"@ember-data/serializer": "workspace:5.5.0-alpha.11",
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
"@ember-data/adapter": "workspace:5.4.0-alpha.16",
"@ember-data/debug": "workspace:5.4.0-alpha.16",
"@ember-data/graph": "workspace:5.4.0-alpha.16",
"@ember-data/json-api": "workspace:5.4.0-alpha.16",
"@ember-data/legacy-compat": "workspace:5.4.0-alpha.16",
"@ember-data/model": "workspace:5.4.0-alpha.16",
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
"@ember-data/request": "workspace:5.4.0-alpha.16",
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
"@ember-data/serializer": "workspace:5.4.0-alpha.16",
"@ember-data/store": "workspace:5.4.0-alpha.16",
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
"@ember/edition-utils": "^1.2.0",
"@embroider/macros": "^1.13.4",
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
"broccoli-merge-trees": "^4.2.0",
"ember-auto-import": "^2.7.0",
"ember-cli-babel": "^8.2.0",
Expand Down Expand Up @@ -123,7 +123,7 @@
"@ember/string": "3.1.1",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
"ember-source": "~5.4.0",
"eslint": "^8.56.0"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/active-record/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ember-data/active-record",
"description": "ActiveRecord Format Support for EmberData",
"version": "5.5.0-alpha.11",
"version": "5.4.0-alpha.16",
"private": false,
"license": "MIT",
"author": "Chris Thoburn <[email protected]>",
Expand All @@ -26,10 +26,10 @@
"pnpm-sync-dependencies-meta-injected": "0.0.10"
},
"peerDependencies": {
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
"@ember-data/store": "^4.12.0 || ^5.0.0",
"@ember/string": "^3.1.1",
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
"ember-inflector": "^4.0.2"
},
"dependenciesMeta": {
Expand Down Expand Up @@ -75,7 +75,7 @@
"build:types": "tsc --build",
"build:client": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
"_build": "bun run build:client && bun run build:types",
"prepack": "pnpm build",
"prepack": "bun run _build",
"_syncPnpm": "bun run sync-dependencies-meta-injected"
},
"ember-addon": {
Expand All @@ -93,17 +93,17 @@
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.8",
"@ember-data/request": "workspace:5.5.0-alpha.11",
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
"@ember-data/request": "workspace:5.4.0-alpha.16",
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
"@ember-data/store": "workspace:5.4.0-alpha.16",
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
"@ember/string": "^3.1.1",
"@embroider/addon-dev": "^4.1.2",
"@glimmer/component": "^1.1.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
"ember-inflector": "^4.0.2",
"ember-source": "~5.4.0",
"rollup": "^4.9.6",
Expand Down
28 changes: 14 additions & 14 deletions packages/adapter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ember-data/adapter",
"version": "5.5.0-alpha.11",
"version": "5.4.0-alpha.16",
"description": "Provides Legacy JSON:API and REST Implementations of the Adapter Interface for use with @ember-data/store",
"keywords": [
"ember-addon"
Expand All @@ -18,7 +18,7 @@
"build:types": "tsc --build",
"build:client": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
"_build": "bun run build:client && bun run build:types",
"prepack": "pnpm build",
"prepack": "bun run _build",
"_syncPnpm": "bun run sync-dependencies-meta-injected"
},
"ember-addon": {
Expand Down Expand Up @@ -47,8 +47,8 @@
}
},
"peerDependencies": {
"@ember-data/legacy-compat": "workspace:5.5.0-alpha.11",
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember-data/legacy-compat": "workspace:5.4.0-alpha.16",
"@ember-data/store": "workspace:5.4.0-alpha.16",
"@ember/string": "^3.1.1",
"ember-inflector": "^4.0.2"
},
Expand Down Expand Up @@ -88,7 +88,7 @@
}
},
"dependencies": {
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
"@embroider/macros": "^1.13.4",
"ember-cli-babel": "^8.2.0",
"ember-cli-test-info": "^1.0.0",
Expand All @@ -105,21 +105,21 @@
"@babel/preset-env": "^7.23.8",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.8",
"@ember-data/graph": "workspace:5.5.0-alpha.11",
"@ember-data/json-api": "workspace:5.5.0-alpha.11",
"@ember-data/legacy-compat": "workspace:5.5.0-alpha.11",
"@ember-data/request": "workspace:5.5.0-alpha.11",
"@ember-data/request-utils": "workspace:5.5.0-alpha.11",
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
"@ember-data/graph": "workspace:5.4.0-alpha.16",
"@ember-data/json-api": "workspace:5.4.0-alpha.16",
"@ember-data/legacy-compat": "workspace:5.4.0-alpha.16",
"@ember-data/request": "workspace:5.4.0-alpha.16",
"@ember-data/request-utils": "workspace:5.4.0-alpha.16",
"@ember-data/store": "workspace:5.4.0-alpha.16",
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
"@ember/string": "^3.1.1",
"@embroider/addon-dev": "^4.1.2",
"@glimmer/component": "^1.1.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/jquery": "^3.5.29",
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
"ember-inflector": "^4.0.2",
"ember-source": "~5.4.0",
"rollup": "^4.9.6",
Expand Down
8 changes: 4 additions & 4 deletions packages/core-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@warp-drive/core-types",
"version": "5.5.0-alpha.11",
"version": "0.0.0-alpha.2",
"description": "Provides core logic, utils and types for WarpDrive and EmberData",
"keywords": [
"ember-addon"
Expand All @@ -17,7 +17,7 @@
"build:types": "tsc --build",
"build:client": "rollup --config && babel ./addon --out-dir addon --plugins=../private-build-infra/src/transforms/babel-plugin-transform-ext.js",
"_build": "bun run build:client && bun run build:types",
"prepack": "pnpm build",
"prepack": "bun run _build",
"_syncPnpm": "bun run sync-dependencies-meta-injected"
},
"files": [
Expand All @@ -40,7 +40,7 @@
}
},
"dependencies": {
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
"ember-cli-babel": "^8.2.0",
"pnpm-sync-dependencies-meta-injected": "0.0.10"
},
Expand All @@ -64,7 +64,7 @@
"@glimmer/component": "^1.1.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
"ember-source": "~5.4.0",
"rollup": "^4.9.6",
"typescript": "^5.3.3",
Expand Down
16 changes: 8 additions & 8 deletions packages/debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ember-data/debug",
"version": "5.5.0-alpha.11",
"version": "5.4.0-alpha.16",
"description": "Provides support for the ember-inspector for apps built with Ember and EmberData",
"keywords": [
"ember-addon"
Expand All @@ -18,7 +18,7 @@
"_syncPnpm": "bun run sync-dependencies-meta-injected"
},
"peerDependencies": {
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember-data/store": "workspace:5.4.0-alpha.16",
"@ember/string": "^3.1.1"
},
"dependenciesMeta": {
Expand All @@ -43,7 +43,7 @@
},
"dependencies": {
"@babel/core": "^7.23.7",
"@ember-data/private-build-infra": "workspace:5.5.0-alpha.11",
"@ember-data/private-build-infra": "workspace:5.4.0-alpha.16",
"@ember/edition-utils": "^1.2.0",
"@embroider/macros": "^1.13.4",
"ember-auto-import": "^2.7.0",
Expand All @@ -52,13 +52,13 @@
"webpack": "^5.89.0"
},
"devDependencies": {
"@ember-data/request": "workspace:5.5.0-alpha.11",
"@ember-data/store": "workspace:5.5.0-alpha.11",
"@ember-data/tracking": "workspace:5.5.0-alpha.11",
"@ember-data/request": "workspace:5.4.0-alpha.16",
"@ember-data/store": "workspace:5.4.0-alpha.16",
"@ember-data/tracking": "workspace:5.4.0-alpha.16",
"@ember/string": "^3.1.1",
"@glimmer/component": "^1.1.2",
"@warp-drive/core-types": "workspace:5.5.0-alpha.11",
"@warp-drive/internal-config": "workspace:5.5.0-alpha.11",
"@warp-drive/core-types": "workspace:0.0.0-alpha.2",
"@warp-drive/internal-config": "workspace:5.4.0-alpha.16",
"ember-source": "~5.4.0"
},
"engines": {
Expand Down
Loading
Loading