Skip to content

Commit 44c7d58

Browse files
authored
Merge branch 'master' into link-updated
2 parents 4f9335c + 0041fee commit 44c7d58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1733
-1896
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# For more information see: https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: 'github-actions'
6+
directory: '/'
7+
schedule:
8+
interval: 'daily'
9+
10+
- package-ecosystem: 'npm'
11+
directory: '/'
12+
schedule:
13+
interval: 'daily'

.github/workflows/nodejs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
2+
3+
name: 'Node.js CI'
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
10+
11+
jobs:
12+
build:
13+
runs-on: 'ubuntu-latest'
14+
15+
strategy:
16+
matrix:
17+
node-version: [10.x, 12.x, 14.x]
18+
19+
steps:
20+
- uses: 'actions/checkout@v2'
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: 'actions/[email protected]'
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: 'Cache dependencies'
28+
uses: 'actions/cache@v2'
29+
with:
30+
path: '**/node_modules'
31+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
32+
33+
- run: 'npm install'
34+
- run: 'npm run lint'
35+
- run: 'npm run build'
36+
- run: 'DISABLE_LOGGING=1 npm run cover'
37+
- run: 'npx nyc report --reporter=lcov > coverage.lcov && npx codecov'

.github/workflows/npm-publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
2+
3+
name: 'Node.js Package'
4+
5+
on:
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: 'ubuntu-latest'
12+
steps:
13+
- uses: 'actions/checkout@v2'
14+
15+
- name: 'Cache dependencies'
16+
uses: 'actions/cache@v2'
17+
with:
18+
path: '**/node_modules'
19+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
20+
21+
- uses: 'actions/[email protected]'
22+
with:
23+
node-version: 14
24+
registry-url: 'https://registry.npmjs.org/'
25+
26+
- run: 'npm install'
27+
- run: 'npm run build'
28+
- run: 'npm publish'
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
save-exact=true
1+
save-exact=true

.travis.yml

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

0 commit comments

Comments
 (0)