Skip to content

Commit

Permalink
chore: auto release (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Dec 17, 2022
1 parent 8135cd7 commit d98e1c1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 50 deletions.
52 changes: 12 additions & 40 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,18 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: CI

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
- cron: '0 2 * * *'

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 16, 18]
os: [ubuntu-latest]
branches: [ master ]

steps:
- name: Checkout Git Source
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm i -g npminstall@5 && npminstall
pull_request:
branches: [ master ]

- name: Continuous Integration
run: npm run ci
workflow_dispatch: {}

- name: Code Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
jobs:
Job:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
with:
os: 'ubuntu-latest'
version: '10, 12, 14, 16, 18'
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
push:
branches: [ master ]

workflow_dispatch: {}

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"benchmark": "^2.1.4",
"cookies": "^0.7.1",
"egg-bin": "1",
"egg-ci": "^1.1.0",
"eslint": "^7.3.1",
"eslint-config-egg": "^8.0.1",
"git-contributor": "^1.1.0",
Expand All @@ -40,17 +39,9 @@
"test": "npm run lint -- --fix && egg-bin test",
"cov": "egg-bin cov",
"lint": "eslint lib benchmark test",
"ci": "npm run lint && egg-bin pkgfiles --check && npm run cov",
"autod": "autod"
"ci": "npm run lint && npm run cov"
},
"engines": {
"node": ">= 10.0.0"
},
"ci": {
"version": "10, 12, 14, 16, 18",
"type": "github",
"os": {
"github": "linux"
}
}
}

0 comments on commit d98e1c1

Please sign in to comment.