Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit edd6ebe

Browse files
committed
add RELEASE.md
1 parent 2c3b972 commit edd6ebe

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/RELEASE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Release Process
2+
3+
## 1. Create Release Notes
4+
1. [Draft a new release on Github](https://github.com/prisma/graphqlgen/releases/new)
5+
2. `npm install -g git-release-notes`
6+
3. Get the release notes from executing `.github/make-release-notes.sh`
7+
4. Separate them like [here]() by Features and Fixes and add them to the draft
8+
5. Get feedback for the draft
9+
10+
## 2. Publish `graphqlgen-json-schema`, if there was a change
11+
```sh
12+
cd ../graphqlgen-json-schema/
13+
yarn publish --no-git-tag-version
14+
```
15+
16+
## 3. Publish `create-graphqlgen`, if there was a change
17+
```sh
18+
cd ../create-graphqlgen
19+
yarn publish --no-git-tag-version
20+
```
21+
22+
## 4. Publish `graphqlgen`
23+
```sh
24+
cd ../graphqlgen/
25+
yarn add graphqlgen-json-schema # if there was a change to graphqlgen-json-schema, add it to graphqlgen
26+
yarn publish --no-git-tag-version
27+
```
28+
## 5. Push the bumped versions with `Bump to NEW_VERSION` to github
29+
30+
## 6. Publish the release draft on Github

.github/make-release-notes.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
git-release-notes 330b5098552..ab41c39c917 ./.github/release-template.ejs | pbcopy

.github/release-template.ejs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<% commits.forEach(function (commit) { %>
2+
* <%= commit.sha1 %> <%= commit.title %><% }) %>
3+

0 commit comments

Comments
 (0)