Skip to content

Commit

Permalink
Use new toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Apr 16, 2020
1 parent 6841c30 commit 473e2b3
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 595 deletions.
32 changes: 0 additions & 32 deletions .circleci/config.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v1
- name: Use Node
uses: actions/setup-node@master
with:
node-version: '13.x'
- name: Install Dependencies using Yarn
run: yarn install
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish Canary
env: # Or as an environment variable
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
run: |
if [ "${{github.repository}}" == "Urigo/merge-graphql-schemas" ] && [ "${{ secrets.NODE_AUTH_TOKEN }}" != "" ]
then
echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > .npmrc
npm run ci:release:canary
else
echo "Fork PR: ${{github.repository}}"
echo "Skipping canary publish due to a fork/PR..."
fi
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ dist
test-results
.env
.vscode
yarn.lock
package-lock.json
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"typings"
],
"dependencies": {
"@graphql-toolkit/file-loading": "0.10.3",
"@graphql-toolkit/schema-merging": "0.10.3",
"@graphql-toolkit/file-loading": "0.10.4",
"@graphql-toolkit/schema-merging": "0.10.4",
"tslib": "1.11.1"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 473e2b3

Please sign in to comment.