Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 2a377ab

Browse files
authored
Merge pull request #407 from relay-tools/move-to-gh-actions
2 parents fde5992 + be0ff62 commit 2a377ab

File tree

5 files changed

+37
-45
lines changed

5 files changed

+37
-45
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Prepare repository
16+
run: git fetch --unshallow --tags
17+
18+
- name: Use Node.js 14.x
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 14.x
22+
23+
- name: Install dependencies
24+
uses: bahmutov/npm-install@v1
25+
26+
- name: Test and build
27+
run: |
28+
yarn test
29+
yarn build
30+
31+
- name: Create Release
32+
env:
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: yarn release

.travis.yml

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"scripts": {
3636
"build": "rimraf lib && tsc --project tsconfig.build.json",
3737
"lint": "tslint -c tslint.json --project tsconfig.json",
38-
"pr-check": "scripts/pr-check.sh",
3938
"prettier": "prettier --write '{src,types,test}/**/*.ts'",
4039
"prepublish": "npm run build",
4140
"relay": "node bin/relay-compiler.js --schema test/schema.graphql --src test/ --outputDir __generated__",
4241
"sync-fixtures": "ts-node ./syncFixtures.ts",
4342
"test": "npm run type-check && jest",
4443
"type-check": "tsc --noEmit --pretty",
45-
"watch": "concurrently 'tsc --watch --project tsconfig.build.json' 'chokidar \"lib/**/*.js\" -c \"yalc publish --force --push\"'"
44+
"watch": "concurrently 'tsc --watch --project tsconfig.build.json' 'chokidar \"lib/**/*.js\" -c \"yalc publish --force --push\"'",
45+
"release": "npx [email protected] shipit -v"
4646
},
4747
"husky": {
4848
"hooks": {

scripts/deploy.sh

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

scripts/pr-check.sh

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

0 commit comments

Comments
 (0)