-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat(dev): via a new Prisma Dev extension #109
Conversation
- Remove the alpha branch dependency - Push only when bumping alpha - Bump @prisma/* packages when updating package.json
Pending:
|
Co-Authored-By: Jan Piotrowski <[email protected]>
Next steps:
|
Merging this PR should release
Next steps (probably in a separate PR):
|
- rename to dev - merge with master, adjust bump deps - add release-workflow.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
1. If they are different, `bump.sh <channel> <version>` is called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish) | ||
1. `bump.sh` updates the `package.json` files in root, client, server and sets `name`, `displayName`, `version`, `dependencies.@prisma/*` packages, and `prisma.version` values. | ||
1. `check-update.sh` then commits these changes, this commit is required because `vsce publish` (to be run later requires a clean git state) | ||
1. `yarn vsce:publish <channel> <version>` i.e. `publish.sh <channel> <version>` is then called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish). This command published the "Prisma" extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. `yarn vsce:publish <channel> <version>` i.e. `publish.sh <channel> <version>` is then called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish). This command published the "Prisma" extension. | |
1. `yarn vsce:publish <channel> <version>` i.e. `publish.sh <channel> <version>` is then called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish). This command publishes the "Prisma" extension. |
release-workflow.md
Outdated
### Dev workflow | ||
|
||
1. `yarn vsce:check dev` calls `check-update.sh dev` | ||
1. `check-update.sh` sets up the repo with Prismo bot as the user, all commits in the remainder of this workflow are attributed to Prismo. | ||
1. `check-update.sh` compares `CURRENT_VERSION` (extension) against `NPM_VERSION` of Prisma CLI. | ||
1. If they are same, this script exits | ||
1. If they are different, `bump.sh <channel> <version>` is called with `channel=dev` and `version=NPM_VERSION` (i.e. the new version of extension to publish) | ||
1. `bump.sh` updates the `package.json` files in root, client, server and sets `name`, `displayName`, `version`, `dependencies.@prisma/*` packages, and `prisma.version` values. | ||
1. `check-update.sh` then commits these changes, this commit is required because `vsce publish` (to be run later requires a clean git state) | ||
1. `yarn vsce:publish <channel> <version>` i.e. `publish.sh <channel> <version>` is then called with `channel=dev` and `version=NPM_VERSION` (i.e. the new version of extension to publish). This command published the "Prisma Dev" extension. | ||
1. `publish.sh` pushes to vscode master repo. Only changes from the dev channel are pushed. | ||
|
||
### Latest workflow | ||
|
||
1. `yarn vsce:check latest` calls `check-update.sh latest` | ||
1. `check-update.sh` sets up the repo with Prismo bot as the user, all commits in the remainder of this workflow are attributed to Prismo. | ||
1. `check-update.sh` compares `CURRENT_VERSION` (extension) against `NPM_VERSION` of Prisma CLI. | ||
1. If they are same, this script exits | ||
1. If they are different, `bump.sh <channel> <version>` is called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish) | ||
1. `bump.sh` updates the `package.json` files in root, client, server and sets `name`, `displayName`, `version`, `dependencies.@prisma/*` packages, and `prisma.version` values. | ||
1. `check-update.sh` then commits these changes, this commit is required because `vsce publish` (to be run later requires a clean git state) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the minimal difference we have here, these two lists can just be combined instead of duplicating everything, and the minimal differences are highlighted and made explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it easier to read a specific workflow than both together?
1. If they are different, `bump.sh <channel> <version>` is called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish) | ||
1. `bump.sh` updates the `package.json` files in root, client, server and sets `name`, `displayName`, `version`, `dependencies.@prisma/*` packages, and `prisma.version` values. | ||
1. `check-update.sh` then commits these changes, this commit is required because `vsce publish` (to be run later requires a clean git state) | ||
1. `yarn vsce:publish <channel> <version>` i.e. `publish.sh <channel> <version>` is then called with `channel=latest` and `version=NPM_VERSION` (i.e. the new version of extension to publish). This command published the "Prisma" extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The names are hardcoded in here, based on the value of channel
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we are in a specific workflow.
Co-Authored-By: Jan Piotrowski <[email protected]>
alpha
version of extension #47Merging this should release a new "Prisma Dev" extension with name:
prisma-dev
, displayName:Prisma Dev