Skip to content

Commit 8bbc547

Browse files
authored
chore: auto release (#18)
1 parent 7fac39d commit 8bbc547

File tree

4 files changed

+31
-52
lines changed

4 files changed

+31
-52
lines changed

.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, windows-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
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, macos-latest, windows-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

AUTHORS

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
"index.d.ts"
99
],
1010
"scripts": {
11-
"contributor": "git-contributor",
1211
"test": "npm run lint && egg-bin test",
1312
"test-cov": "egg-bin cov",
1413
"lint": "eslint index.js test --fix",
15-
"ci": "npm run lint && npm run test-cov",
16-
"autod": "autod -w --prefix '^'"
14+
"ci": "npm run lint && npm run test-cov"
1715
},
1816
"dependencies": {
1917
"debug": "^2.6.8",
@@ -23,10 +21,8 @@
2321
"@types/node": "^12.0.8",
2422
"autod": "^3.1.0",
2523
"egg-bin": "^1.11.1",
26-
"egg-ci": "^1.8.0",
2724
"eslint": "^4.19.1",
2825
"eslint-config-egg": "^6.0.0",
29-
"git-contributor": "^1.0.10",
3026
"typescript": "^3.9.3"
3127
},
3228
"homepage": "https://github.com/node-modules/runscript",
@@ -46,11 +42,6 @@
4642
"engines": {
4743
"node": ">=4.2.3"
4844
},
49-
"ci": {
50-
"version": "8, 10, 12, 14, 16",
51-
"type": "github",
52-
"npminstall": false
53-
},
54-
"author": "fengmk2 <[email protected]> (https://fengmk2.com)",
45+
"author": "fengmk2 <[email protected]> (https://github.com/fengmk2)",
5546
"license": "MIT"
5647
}

0 commit comments

Comments
 (0)