Skip to content

Commit 19e6d28

Browse files
authored
chore: auto release (#131)
1 parent 07223e7 commit 19e6d28

4 files changed

Lines changed: 30 additions & 72 deletions

File tree

.autod.conf.js

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

.github/workflows/nodejs.yml

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,18 @@
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
1+
name: CI
52

63
on:
74
push:
8-
branches:
9-
- main
10-
- master
11-
pull_request:
12-
branches:
13-
- main
14-
- master
15-
schedule:
16-
- cron: '0 2 * * *'
17-
18-
jobs:
19-
build:
20-
runs-on: ${{ matrix.os }}
21-
22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
node-version: [8, 10, 12, 14, 16]
26-
os: [ubuntu-latest, macos-latest]
5+
branches: [ master ]
276

28-
steps:
29-
- name: Checkout Git Source
30-
uses: actions/checkout@v2
31-
32-
- name: Use Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v1
34-
with:
35-
node-version: ${{ matrix.node-version }}
36-
37-
- name: Install Dependencies
38-
run: npm i -g npminstall && npminstall
7+
pull_request:
8+
branches: [ master ]
399

40-
- name: Continuous Integration
41-
run: npm run ci
10+
workflow_dispatch: {}
4211

43-
- name: Code Coverage
44-
uses: codecov/codecov-action@v1
45-
with:
46-
token: ${{ secrets.CODECOV_TOKEN }}
12+
jobs:
13+
Job:
14+
name: Node.js
15+
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
16+
with:
17+
os: 'ubuntu-latest'
18+
version: '8, 10, 12, 14, 16, 18'

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
workflow_dispatch: {}
8+
9+
jobs:
10+
release:
11+
name: Node.js
12+
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
13+
secrets:
14+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
15+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
16+
with:
17+
checkTest: false

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"test-cov": "istanbul cover _mocha -- -t 15000 test/*.test.js",
1313
"lint": "jshint .",
1414
"ci": "npm run lint && npm run test-cov",
15-
"autod": "autod",
16-
"benchmark": "node benchmark/encode.js && node benchmark/decode.js",
17-
"contributor": "git-contributor"
15+
"benchmark": "node benchmark/encode.js && node benchmark/decode.js"
1816
},
1917
"repository": {
2018
"type": "git",
@@ -45,21 +43,12 @@
4543
"autod": "^3.1.0",
4644
"beautify-benchmark": "^0.2.4",
4745
"benchmark": "^2.1.4",
48-
"egg-ci": "^1.19.0",
49-
"git-contributor": "^1.0.10",
5046
"istanbul": "^0.4.5",
5147
"js-to-java": "^2.6.1",
5248
"jshint": "^2.10.2",
5349
"mm": "^2.5.0",
5450
"mocha": "^3.5.3"
5551
},
56-
"ci": {
57-
"type": "github",
58-
"os": {
59-
"github": "linux, macos"
60-
},
61-
"version": "8, 10, 12, 14, 16"
62-
},
6352
"engines": {
6453
"node": ">= 0.12.0"
6554
}

0 commit comments

Comments
 (0)