Skip to content

Commit 12c51b3

Browse files
authored
chore: auto release (#98)
1 parent fab5e2c commit 12c51b3

3 files changed

Lines changed: 30 additions & 50 deletions

File tree

.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: [10, 12, 14, 16]
26-
os: [ubuntu-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: '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 & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"index.es5.js"
1010
],
1111
"scripts": {
12-
"contributor": "git-contributor",
12+
"lint": "echo 'ignore'",
1313
"test": "egg-bin test",
1414
"cov": "egg-bin cov",
1515
"ci": "npm run cov",
@@ -22,8 +22,6 @@
2222
"beautify-benchmark": "0",
2323
"benchmark": "*",
2424
"egg-bin": "^4.19.0",
25-
"egg-ci": "^1.19.0",
26-
"git-contributor": "^1.0.11",
2725
"should": "*"
2826
},
2927
"repository": {
@@ -38,13 +36,6 @@
3836
"engines": {
3937
"node": ">= 10.0.0"
4038
},
41-
"ci": {
42-
"type": "github",
43-
"os": {
44-
"github": "linux"
45-
},
46-
"version": "10, 12, 14, 16"
47-
},
4839
"author": "fengmk2 <fengmk2@gmail.com>",
4940
"license": "MIT"
5041
}

0 commit comments

Comments
 (0)