Skip to content

Commit 9804ad5

Browse files
authored
chore: auto release (#50)
1 parent f9a9747 commit 9804ad5

File tree

4 files changed

+29
-55
lines changed

4 files changed

+29
-55
lines changed

.editorconfig

Lines changed: 0 additions & 10 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: [14, 16, 18]
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
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: '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: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"devDependencies": {
2828
"command-line-test": "1",
2929
"egg-bin": "^5.2.0",
30-
"egg-ci": "^2.1.0",
3130
"eslint": "^8.23.1",
3231
"eslint-config-egg": "^12.0.0",
3332
"git-contributor": "1",
@@ -41,10 +40,6 @@
4140
"lint": "eslint .",
4241
"contributor": "git-contributor"
4342
},
44-
"ci": {
45-
"os": "linux",
46-
"version": "14, 16, 18"
47-
},
4843
"homepage": "https://github.com/node-modules/detect-port",
4944
"license": "MIT"
5045
}

0 commit comments

Comments
 (0)