Skip to content

Commit c51141c

Browse files
author
Enda
authored
Merge pull request #1491 from craicoverflow/ci/release-workflow
2 parents 0654fd5 + 51b4b13 commit c51141c

File tree

14 files changed

+40
-19
lines changed

14 files changed

+40
-19
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- master
10+
release:
11+
types: [released, prereleased]
1012

1113
jobs:
1214
test:
@@ -54,3 +56,22 @@ jobs:
5456
else
5557
echo "Skipping canary publish due to a fork/PR..."
5658
fi
59+
60+
publish:
61+
# publish to npm only when doing the release
62+
if: ${{ github.event_name == 'release' }}
63+
name: Publish Release
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Checkout Master
67+
uses: actions/checkout@v1
68+
- name: Use Node
69+
uses: actions/setup-node@v1
70+
with:
71+
node-version: 14
72+
- name: Install Dependencies using Yarn
73+
run: yarn install
74+
- name: Build
75+
run: yarn build
76+
- name: Release
77+
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NODE_AUTH_TOKEN}}" > ~/.npmrc && TAG=${GITHUB_REF#"refs/tags/"} npm run release

integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
"ts-node/register"
3030
]
3131
}
32-
}
32+
}

integration/test-project/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "test-project",
4-
"version": "4.0.0",
4+
"version": "4.1.0",
55
"dependencies": {
66
"@graphql-tools/load-files": "6.2.4",
77
"@types/node": "13.13.23",
@@ -18,12 +18,12 @@
1818
"@graphql-cli/codegen": "1.17.10",
1919
"@graphql-cli/coverage": "2.1.0",
2020
"@graphql-cli/diff": "2.1.0",
21-
"@graphql-cli/generate": "4.0.0",
22-
"@graphql-cli/serve": "4.0.0",
21+
"@graphql-cli/generate": "4.1.0",
22+
"@graphql-cli/serve": "4.1.0",
2323
"@graphql-cli/similar": "2.1.0",
2424
"@graphql-cli/validate": "2.1.0",
2525
"graphql": "15.3.0",
26-
"graphql-cli": "4.0.0",
26+
"graphql-cli": "4.1.0",
2727
"tslint": "6.1.3",
2828
"typescript": "4.0.3"
2929
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-cli-monorepo",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"private": true,
55
"author": "dotansimha <[email protected]>",
66
"license": "MIT",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
"open": "7.3.0",
3737
"yargs": "16.0.3"
3838
}
39-
}
39+
}

packages/commands/generate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
"graphback-cli": "1.0.1",
2828
"tslib": "2.0.2"
2929
}
30-
}
30+
}

packages/commands/init/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
"tmp": "0.2.1",
4040
"tslib": "2.0.2"
4141
}
42-
}
42+
}

packages/commands/serve/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
"graphql-serve": "1.0.1",
2828
"tslib": "2.0.2"
2929
}
30-
}
30+
}

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
"@graphql-tools/load": "6.2.4",
1818
"tslib": "2.0.2"
1919
}
20-
}
20+
}

packages/loaders/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
"@graphql-tools/url-loader": "6.3.0",
2323
"@graphql-tools/utils": "6.2.4"
2424
}
25-
}
25+
}

0 commit comments

Comments
 (0)