Skip to content

Commit 03896be

Browse files
committed
chore: start 2.x branch
1 parent 0f4e16a commit 03896be

File tree

5 files changed

+26
-67
lines changed

5 files changed

+26
-67
lines changed

.github/PULL_REQUEST_TEMPLATE.md

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

.github/workflows/nodejs.yml

Lines changed: 11 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,17 @@
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 for 2.x
52

63
on:
74
push:
8-
branches:
9-
- main
10-
- master
5+
branches: [ 2.x ]
116
pull_request:
12-
branches:
13-
- main
14-
- master
15-
schedule:
16-
- cron: '0 2 * * *'
7+
branches: [ 2.x ]
178

189
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]
27-
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@5 && npminstall
39-
40-
- name: Continuous Integration
41-
run: npm run ci
42-
43-
- name: Code Coverage
44-
uses: codecov/codecov-action@v1
45-
with:
46-
token: ${{ secrets.CODECOV_TOKEN }}
10+
Job:
11+
name: Node.js
12+
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
13+
with:
14+
os: 'ubuntu-latest, windows-latest, macos-latest'
15+
version: '14, 16, 18, 20, 22'
16+
secrets:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Release for 2.x
2+
on:
3+
push:
4+
branches: [ 2.x ]
5+
6+
jobs:
7+
release:
8+
name: Node.js
9+
uses: eggjs/github-actions/.github/workflows/node-release.yml@master
10+
secrets:
11+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Base view plugin for egg
1515
## Install
1616

1717
```bash
18-
$ npm i egg-view --save
18+
$ npm i egg-view@2 --save
1919
```
2020

2121
## Usage

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
},
5555
"repository": {
5656
"type": "git",
57-
"url": "git+https://github.com/eggjs/egg-view.git"
57+
"url": "git+https://github.com/eggjs/view.git"
5858
},
5959
"bugs": {
6060
"url": "https://github.com/eggjs/egg/issues"
6161
},
62-
"homepage": "https://github.com/eggjs/egg-view#readme",
62+
"homepage": "https://github.com/eggjs/view#readme",
6363
"author": "popomore <[email protected]>",
6464
"license": "MIT"
6565
}

0 commit comments

Comments
 (0)