Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Commit 138bb54

Browse files
authored
add merge jobs (#510)
1 parent 307e5fa commit 138bb54

File tree

3 files changed

+35
-41
lines changed

3 files changed

+35
-41
lines changed

.github/workflows/merge-jobs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
10+
jobs:
11+
build-publish:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: c-hive/gha-yarn-cache@v1
18+
- name: Cancel Previous Runs
19+
uses: styfle/cancel-workflow-action@0.9.1
20+
with:
21+
access_token: ${{ github.token }}
22+
- name: Read .nvmrc
23+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
24+
id: nvm
25+
- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: ${{ steps.nvm.outputs.NVMRC }}
29+
- name: Run yarn tasks
30+
run: |
31+
yarn --silent
32+
- name: Publish NPM package
33+
uses: JS-DevTools/npm-publish@v1
34+
with:
35+
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/pull-request-jobs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
name: Node.js CI
55

66
on:
7-
# push:
8-
# branches: [ master ]
97
pull_request:
108
branches: [ master ]
119

.travis.yml

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

0 commit comments

Comments
 (0)