Skip to content

Commit 880ad19

Browse files
authored
chore: auto release (#55)
1 parent 1c1a052 commit 880ad19

File tree

4 files changed

+41
-76
lines changed

4 files changed

+41
-76
lines changed

.autod.conf.js

-25
This file was deleted.

.github/workflows/nodejs.yml

+12-38
Original file line numberDiff line numberDiff line change
@@ -1,44 +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-
- master
10-
pull_request:
11-
branches:
12-
- master
13-
schedule:
14-
- cron: '0 2 * * *'
15-
16-
jobs:
17-
build:
18-
runs-on: ${{ matrix.os }}
19-
20-
strategy:
21-
fail-fast: false
22-
matrix:
23-
node-version: [12, 14, 16]
24-
os: [ubuntu-latest, windows-latest, macos-latest]
5+
branches: [ master ]
256

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

38-
- name: Continuous Integration
39-
run: npm run ci
10+
workflow_dispatch: {}
4011

41-
- name: Code Coverage
42-
uses: codecov/codecov-action@v1
43-
with:
44-
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: '14, 16, 18'

.github/workflows/release.yml

+17
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

+12-13
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,30 @@
2121
"zlogger": "^1.1.0"
2222
},
2323
"devDependencies": {
24-
"autod": "^3.0.1",
2524
"co": "^4.6.0",
2625
"coffee": "^5.1.1",
27-
"egg": "^2.14.1",
28-
"egg-bin": "^4.9.0",
29-
"eslint": "^5.10.0",
30-
"eslint-config-egg": "^7.1.0",
26+
"egg": "^3.9.0",
27+
"egg-bin": "^5.6.1",
28+
"eslint": "^8.30.0",
29+
"eslint-config-egg": "^12.1.0",
3130
"git-contributor": "^1.0.10",
32-
"mm": "^2.4.1",
33-
"typescript": "^4",
34-
"urllib": "^2.31.3",
35-
"webstorm-disable-index": "^1.2.0"
31+
"mm": "^3.2.1",
32+
"typescript": "^4.9.4",
33+
"urllib": "^3.9.0"
3634
},
3735
"engines": {
3836
"node": ">=6.0.0"
3937
},
38+
"ci": {
39+
"version": "14, 16, 18"
40+
},
4041
"scripts": {
4142
"contributor": "git-contributor",
42-
"pkgfiles": "egg-bin pkgfiles",
43-
"test": "npm run lint -- --fix && npm run pkgfiles && npm run test-local",
43+
"test": "npm run lint -- --fix && npm run test-local",
4444
"test-local": "egg-bin test",
4545
"cov": "egg-bin cov",
4646
"lint": "eslint .",
47-
"ci": "npm run pkgfiles -- --check && npm run lint && npm run cov",
48-
"autod": "autod"
47+
"ci": "npm run lint && npm run cov"
4948
},
5049
"files": [
5150
"index.js",

0 commit comments

Comments
 (0)