Skip to content

Commit dd0d56d

Browse files
committed
chore: switch from Travis CI to GitHub Actions
1 parent 5052f7d commit dd0d56d

File tree

3 files changed

+38
-31
lines changed

3 files changed

+38
-31
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [8.x, 10.x, 12.x, 14.x]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: yarn install --frozen-lockfile --non-interactive
28+
- run: yarn test

.travis.yml

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

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# find-yarn-workspace-root
22

3-
[![Build Status](https://travis-ci.org/square/find-yarn-workspace-root.svg?branch=master)](https://travis-ci.org/square/find-yarn-workspace-root)
3+
![CI](https://github.com/square/find-yarn-workspace-root/workflows/CI/badge.svg)
44

55
Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com
66

@@ -40,13 +40,17 @@ Then create a branch for your bugfix/feature, make changes and update the tests,
4040
4141
## Releases
4242

43-
Releases are handled by Travis CI once a build succeeds on `master`. To trigger a release, bump the version using `standard-version`:
43+
To trigger a release, bump the version using `standard-version`:
4444

45-
```bash
46-
$(yarn bin)/standard-version
47-
```
45+
1. To update the CHANGELOG, bump the version in `package.json`, and create a git tag, run:
46+
47+
```bash
48+
$(yarn bin)/standard-version
49+
```
50+
51+
2. `git push && git push --tags`
4852

49-
That should update the CHANGELOG, bump the version in `package.json`, and create a git tag. Then, just `git push && git push --tags`.
53+
3. `npm publish`
5054

5155
---
5256
Copyright 2017 Square, Inc.

0 commit comments

Comments
 (0)