Skip to content

Commit 7232e69

Browse files
authored
Merge pull request #268 from kkellyy/swap_to_gh_actions
Swap to Github Actions
2 parents 74ee5d0 + 7360c08 commit 7232e69

File tree

5 files changed

+49
-27
lines changed

5 files changed

+49
-27
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Release new version
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.8
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
- run: make test
19+
20+
publish-npm:
21+
needs: test
22+
runs-on: ubuntu-20.04
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v2
26+
with:
27+
node-version: 12
28+
registry-url: https://registry.npmjs.org/
29+
- run: yarn
30+
- run: yarn publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Run Tests
3+
on: [push]
4+
jobs:
5+
test:
6+
runs-on: ubuntu-20.04
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-python@v2
10+
with:
11+
python-version: 3.8
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '12.x'
15+
- run: make test

.travis.yml

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ minimal: node_modules build
55

66
venv: Makefile requirements-dev.txt
77
rm -rf venv
8-
virtualenv venv --python=$(PYTHON3)
8+
$(PYTHON3) -m venv venv
99
venv/bin/pip install -r requirements-dev.txt
1010

1111
node_modules: package.json yarn.lock

PUBLISH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ After merging your PR to master, you may want to release a new version of **data
88
2. Update version in [package.json](package.json) directly in <https://github.com/Yelp/dataloader-codegen/edit/master/package.json> and commit changes
99
3. Draft a new release in <https://github.com/Yelp/dataloader-codegen/releases/new> with the following format. Remember to use tag `vX.Y.Z` instead of `X.Y.Z`
1010
![release](./images/release.png)
11-
4. That's it. **Travis-CI** will start a releasing process like <https://travis-ci.com/github/Yelp/dataloader-codegen/builds/154133661>
11+
4. That's it. **Github Actions** will start a releasing process like **TBD** (we're in the process of switching right now)

0 commit comments

Comments
 (0)