Skip to content

Commit 90bdd21

Browse files
committed
Add changesets for release management
1 parent df8898a commit 90bdd21

9 files changed

Lines changed: 4154 additions & 174 deletions

File tree

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"linked": [],
6+
"access": "restricted",
7+
"baseBranch": "main",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

.changeset/mean-planets-occur.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-executor': patch
3+
---
4+
5+
Add GraphQL v15 to supported versions

.changeset/tasty-beers-count.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-executor': patch
3+
---
4+
5+
Add changesets for workflow management

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ jobs:
274274
- name: Deploy to `npm` branch
275275
run: npm run gitpublish:npm
276276
env:
277-
GH_TOKEN: ${{ secrets.GH_NPM_BRANCH_PUBLISH_TOKEN }}
277+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
278278

279279
deploy-to-deno-branch:
280280
name: Deploy to `deno` branch
@@ -291,7 +291,7 @@ jobs:
291291
- name: Setup Node.js
292292
uses: actions/setup-node@v2
293293
with:
294-
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
294+
node-version: ${{ env.GITHUB_TOKEN }}
295295

296296
- name: Cache Node.js modules
297297
uses: actions/cache@v2

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@master
15+
with:
16+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17+
fetch-depth: 0
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
23+
24+
- name: Cache Node.js modules
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.OS }}-node-
31+
32+
- name: Install Dependencies
33+
run: npm ci
34+
35+
- name: Create Release Pull Request or Publish to npm
36+
id: changesets
37+
uses: changesets/action@master
38+
with:
39+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
40+
publish: npm run release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)