Skip to content

Commit

Permalink
Merge pull request #1491 from craicoverflow/ci/release-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Enda authored Oct 7, 2020
2 parents 0654fd5 + 51b4b13 commit c51141c
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 19 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- master
release:
types: [released, prereleased]

jobs:
test:
Expand Down Expand Up @@ -54,3 +56,22 @@ jobs:
else
echo "Skipping canary publish due to a fork/PR..."
fi
publish:
# publish to npm only when doing the release
if: ${{ github.event_name == 'release' }}
name: Publish Release
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v1
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install Dependencies using Yarn
run: yarn install
- name: Build
run: yarn build
- name: Release
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NODE_AUTH_TOKEN}}" > ~/.npmrc && TAG=${GITHUB_REF#"refs/tags/"} npm run release
2 changes: 1 addition & 1 deletion integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"ts-node/register"
]
}
}
}
8 changes: 4 additions & 4 deletions integration/test-project/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "test-project",
"version": "4.0.0",
"version": "4.1.0",
"dependencies": {
"@graphql-tools/load-files": "6.2.4",
"@types/node": "13.13.23",
Expand All @@ -18,12 +18,12 @@
"@graphql-cli/codegen": "1.17.10",
"@graphql-cli/coverage": "2.1.0",
"@graphql-cli/diff": "2.1.0",
"@graphql-cli/generate": "4.0.0",
"@graphql-cli/serve": "4.0.0",
"@graphql-cli/generate": "4.1.0",
"@graphql-cli/serve": "4.1.0",
"@graphql-cli/similar": "2.1.0",
"@graphql-cli/validate": "2.1.0",
"graphql": "15.3.0",
"graphql-cli": "4.0.0",
"graphql-cli": "4.1.0",
"tslint": "6.1.3",
"typescript": "4.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-cli-monorepo",
"version": "4.0.0",
"version": "4.1.0",
"private": true,
"author": "dotansimha <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"open": "7.3.0",
"yargs": "16.0.3"
}
}
}
2 changes: 1 addition & 1 deletion packages/commands/generate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"graphback-cli": "1.0.1",
"tslib": "2.0.2"
}
}
}
2 changes: 1 addition & 1 deletion packages/commands/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"tmp": "0.2.1",
"tslib": "2.0.2"
}
}
}
2 changes: 1 addition & 1 deletion packages/commands/serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"graphql-serve": "1.0.1",
"tslib": "2.0.2"
}
}
}
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"@graphql-tools/load": "6.2.4",
"tslib": "2.0.2"
}
}
}
2 changes: 1 addition & 1 deletion packages/loaders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
"@graphql-tools/url-loader": "6.3.0",
"@graphql-tools/utils": "6.2.4"
}
}
}
2 changes: 1 addition & 1 deletion templates/fullstack/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "full-stack-template-client",
"version": "4.0.0",
"version": "4.1.0",
"private": true,
"devDependencies": {
"@types/jest": "26.0.14",
Expand Down
8 changes: 4 additions & 4 deletions templates/fullstack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "full-stack-template",
"version": "4.0.0",
"version": "4.1.0",
"private": true,
"workspaces": [
"client",
Expand All @@ -20,12 +20,12 @@
"@graphql-cli/codegen": "1.17.10",
"@graphql-cli/coverage": "2.1.0",
"@graphql-cli/diff": "2.1.0",
"@graphql-cli/generate": "4.0.0",
"@graphql-cli/serve": "4.0.0",
"@graphql-cli/generate": "4.1.0",
"@graphql-cli/serve": "4.1.0",
"@graphql-cli/similar": "2.1.0",
"@graphql-cli/validate": "2.1.0",
"graphql": "15.3.0",
"graphql-cli": "4.0.0",
"graphql-cli": "4.1.0",
"schemats": "3.0.3",
"tslint": "6.1.3",
"typescript": "4.0.3"
Expand Down
2 changes: 1 addition & 1 deletion templates/fullstack/server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "full-stack-template-server",
"version": "4.0.0",
"version": "4.1.0",
"scripts": {
"develop": "ts-node-dev src/index.ts",
"start": "ts-node src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"last 1 safari version"
]
}
}
}

0 comments on commit c51141c

Please sign in to comment.