-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 893 Bytes
/
main.yml
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
name: ci
on:
push:
branches:
- master
- release/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js for use with actions
uses: actions/setup-node@v1
with:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- name: "Test and publish on NPM"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_OPTIONS: "--max_old_space_size=4096"
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish tag on GitHub
uses: Klemensas/action-autotag@1.2.3
with:
tag_prefix: "v"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"