-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 745 Bytes
/
nodejs.yml
File metadata and controls
35 lines (26 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on: [push, pull_request]
env:
CI: true
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 13.x
- name: Echo versions used
run: echo "node:" && node --version && echo "" && echo "npm:" && npm --version && echo "" && echo "yarn:" && yarn --version
- name: Install dependencies
run: yarn install
- name: Run CI script
run: yarn run ci
- name: Release
if: github.ref == 'refs/heads/master'
run: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}