Skip to content

Commit 9d1c8be

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 437ce80 + faaa3e4 commit 9d1c8be

File tree

310 files changed

+13404
-5668
lines changed

Some content is hidden

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

310 files changed

+13404
-5668
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)

.changeset/config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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": "master",
8+
"updateInternalDependencies": "patch",
9+
"ignore": [
10+
"@graphql-codegen/testing",
11+
"@graphql-codegen/website"
12+
]
13+
}

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Have a question?
44
url: https://github.com/dotansimha/graphql-code-generator/discussions/new
5-
about: Not sure about something? need help from the community? have a question to our team? please ask and answer questions here.
5+
about: Not sure about something? need help from the community? have a question to our team? please ask and answer questions here.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 20

.github/release-drafter.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/canary.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
name: Canary Release
22

33
on:
4-
push:
5-
branches:
6-
- master
74
pull_request:
85
branches:
96
- master
7+
108
jobs:
119
publish-canary:
1210
name: Publish Canary
13-
timeout-minutes: 10
1411
runs-on: ubuntu-latest
15-
if: contains(github.actor, 'renovate') == false
12+
if: github.event.pull_request.head.repo.full_name == github.repository
1613
steps:
1714
- name: Checkout Master
1815
uses: actions/checkout@v1
1916
- name: Use Node
2017
uses: actions/setup-node@v1
2118
with:
2219
node-version: '14.x'
20+
- name: Configure Git Credentials
21+
run: |
22+
git config --global user.email "[email protected]"
23+
git config --global user.name "theguild-bot"
24+
echo "machine github.com login theguild-bot password ${{secrets.GH_API_TOKEN}}" > ~/.netrc
25+
- name: Setup NPM credentials
26+
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2329
- name: Get yarn cache
2430
id: yarn-cache
2531
run: echo "::set-output name=dir::$(yarn cache dir)"
@@ -32,26 +38,32 @@ jobs:
3238
${{ runner.os }}-14-yarn-
3339
- name: Install Dependencies using Yarn
3440
run: yarn install --ignore-engines && git checkout yarn.lock
35-
- name: Build
36-
run: yarn build
37-
3841
- name: Release Canary
3942
id: canary
4043
uses: 'kamilkisiela/release-canary@master'
41-
if: github.repository == 'dotansimha/graphql-code-generator'
4244
with:
4345
npm-token: ${{ secrets.NODE_AUTH_TOKEN }}
44-
npm-script: 'release:canary'
46+
npm-script: 'yarn release:canary'
47+
changesets: true
4548
- name: Publish a message
4649
if: steps.canary.outputs.released
4750
uses: 'kamilkisiela/pr-comment@master'
4851
with:
4952
message: |
50-
The latest changes of this PR are available as alpha in npm: `${{ steps.canary.outputs.version }}`
51-
52-
Quickly update your package.json by running:
53+
The latest changes of this PR are available as alpha in npm (based on the declared `changesets`):
5354
54-
npx match-version @graphql-codegen ${{ steps.canary.outputs.version }}
55+
```
56+
${{ steps.canary.outputs.changesetsPublishedPackages}}
57+
```
58+
bot-token: ${{ secrets.GH_API_TOKEN }}
59+
bot: 'theguild-bot'
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
61+
- name: Publish a empty message
62+
if: steps.canary.outputs.released == 'false'
63+
uses: 'kamilkisiela/pr-comment@master'
64+
with:
65+
message: |
66+
The latest changes of this PR are not available as alpha, since there are no linked `changesets` for this PR.
5567
bot-token: ${{ secrets.GH_API_TOKEN }}
5668
bot: 'theguild-bot'
5769
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ on:
1111
jobs:
1212
test:
1313
name: Testing on ${{matrix.os}} and Node ${{matrix.node_version}}
14-
timeout-minutes: 10
1514
runs-on: ${{matrix.os}}
1615
strategy:
16+
fail-fast: false
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
1919
node_version: [10, 14]

.github/workflows/release.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: NPM Release
1+
name: Release
22
on:
3-
release:
4-
types: [published]
3+
push:
4+
branches:
5+
- master
56
jobs:
6-
build:
7+
publish:
78
runs-on: ubuntu-latest
89
steps:
910
- name: Checkout Master
@@ -40,17 +41,13 @@ jobs:
4041
${{ runner.os }}-14-15-yarn-
4142
- name: Install Dependencies using Yarn
4243
run: yarn install && git checkout yarn.lock
43-
- name: Build
44-
run: yarn build
45-
- name: Publish to NPM
46-
run: npm run release
47-
env:
48-
RELEASE_VERSION: ${{ github.event.release.tag_name }}
49-
- name: Commit updated package.json files
50-
run: |
51-
git add .
52-
git commit -m "${{ github.event.release.tag_name }}"
53-
- name: Push all the changes
54-
uses: ad-m/github-push-action@master
44+
- name: Create Release Pull Request or Publish to npm
45+
id: changesets
46+
uses: changesets/action@master
5547
with:
56-
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
publish: yarn release
49+
commit: 'chore(release): update monorepo packages versions'
50+
title: 'Upcoming Release Changes'
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/website.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ name: Website
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
75
branches:
86
- master
97

108
jobs:
119
test:
1210
name: Deploy Website
13-
timeout-minutes: 10
1411
runs-on: ubuntu-latest
15-
if: contains(github.event.head_commit.message, '[deploy_website]') || contains(github.ref, 'refs/tags/')
12+
if: contains(github.event.head_commit.message, '[deploy_website]') || contains(github.event.head_commit.message, 'update monorepo packages versions')
1613
steps:
1714
- name: Checkout
1815
uses: actions/checkout@v1

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)