fix: 自动化

This commit is contained in:
liushaozhen 2020-04-24 17:14:57 +08:00
parent fb7446d973
commit 0977659081
4 changed files with 55 additions and 95 deletions

46
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,46 @@
on:
push:
tags:
- 'v*'
name: Publish
jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 10
# - run: npm i -g bee-tools-test
# - run: npm i
# - run: npm test
publish:
# needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: npm i -g bee-tools
- run: npm i
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: iuap-design/actions-ynpm-sync@master
github-release:
needs: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: npm i -g github-release-from-changelog
- run: github-release-from-changelog
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

5
.huskyrc Normal file
View File

@ -0,0 +1,5 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}

3
commitlint.config.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}

View File

@ -1,95 +1 @@
{
"name": "bee-table",
"version": "2.2.48",
"description": "Table ui component for react",
"keywords": [
"react",
"react-component",
"bee-table",
"iuap-design"
],
"engines": {
"node": ">=6.0.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"jsx"
],
"transform": {
"^.+\\.js$": "babel-jest"
}
},
"homepage": "https://github.com/tinper-bee/bee-table.git",
"author": "Yonyou FED",
"repository": "http://github.com/tinper-bee/bee-table",
"bugs": "https://github.com/tinper-bee/bee-table.git/issues",
"license": "MIT",
"main": "./build/index.js",
"config": {
"port": 3000,
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"scripts": {
"dev": "bee-tools run start",
"build": "bee-tools run build",
"lint": "bee-tools run lint",
"test": "jest",
"chrome": "bee-tools run chrome",
"coveralls": "jest",
"browsers": "bee-tools run browsers",
"pub": "bee-tools run pub",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"bee-button": "latest",
"bee-checkbox": "latest",
"bee-datepicker": "^2.0.28",
"bee-dropdown": "^2.0.4",
"bee-form-control": "latest",
"bee-icon": "latest",
"bee-input-number": "^2.0.7",
"bee-loading": "1.1.2",
"bee-locale": "0.0.14",
"bee-menus": "^2.0.6",
"bee-radio": "^2.0.16",
"bee-select": "^2.0.11",
"classnames": "^2.2.5",
"component-classes": "^1.2.6",
"lodash.clonedeep": "^4.5.0",
"object-path": "^0.11.3",
"shallowequal": "^1.0.2",
"throttle-debounce": "^2.0.1",
"tinper-bee-core": "latest",
"warning": "^3.0.0"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0",
"react-dom": "^15.3.0 || ^16.0",
"prop-types": "^15.6.0"
},
"devDependencies": {
"babel-jest": "^22.0.4",
"bee-clipboard": "^2.0.0",
"bee-drawer": "0.0.2",
"bee-layout": "latest",
"bee-pagination": "^2.0.5",
"bee-panel": "latest",
"bee-popover": "^3.0.2",
"bee-switch": "^2.0.6",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^2.9.1",
"es5-shim": "~4.1.10",
"jest": "^22.0.4",
"react": "^16.6.3",
"react-addons-test-utils": "^15.5.0",
"react-dom": "^16.6.3",
"ref-tree": "2.0.1-beta.1",
"reqwest": "^2.0.5",
"tinper-bee": "latest"
}
}
{"name":"bee-table","version":"2.2.48","description":"Table ui component for react","keywords":["react","react-component","bee-table","iuap-design"],"engines":{"node":">=6.0.0"},"jest":{"moduleFileExtensions":["js","jsx"],"transform":{"^.+\\.js$":"babel-jest"}},"homepage":"https://github.com/tinper-bee/bee-table.git","author":"Yonyou FED","repository":"http://github.com/tinper-bee/bee-table","bugs":"https://github.com/tinper-bee/bee-table.git/issues","license":"MIT","main":"./build/index.js","config":{"port":3000,"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"dev":"bee-tools run start","build":"bee-tools run build","lint":"bee-tools run lint","test":"jest","chrome":"bee-tools run chrome","coveralls":"jest","browsers":"bee-tools run browsers","pub":"bee-tools run pub","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0","version":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","postversion":"git push --follow-tags","prepublishOnly":"npm run build"},"dependencies":{"bee-button":"latest","bee-checkbox":"latest","bee-datepicker":"^2.0.28","bee-dropdown":"^2.0.4","bee-form-control":"latest","bee-icon":"latest","bee-input-number":"^2.0.7","bee-loading":"1.1.2","bee-locale":"0.0.14","bee-menus":"^2.0.6","bee-radio":"^2.0.16","bee-select":"^2.0.11","classnames":"^2.2.5","component-classes":"^1.2.6","lodash.clonedeep":"^4.5.0","object-path":"^0.11.3","shallowequal":"^1.0.2","throttle-debounce":"^2.0.1","tinper-bee-core":"latest","warning":"^3.0.0"},"peerDependencies":{"react":"^15.3.0 || ^16.0","react-dom":"^15.3.0 || ^16.0","prop-types":"^15.6.0"},"devDependencies":{"babel-jest":"^22.0.4","bee-clipboard":"^2.0.0","bee-drawer":"0.0.2","bee-layout":"latest","bee-pagination":"^2.0.5","bee-panel":"latest","bee-popover":"^3.0.2","bee-switch":"^2.0.6","chai":"^3.5.0","console-polyfill":"~0.2.1","cz-conventional-changelog":"^2.1.0","enzyme":"^2.9.1","es5-shim":"~4.1.10","jest":"^22.0.4","react":"^16.6.3","react-addons-test-utils":"^15.5.0","react-dom":"^16.6.3","ref-tree":"2.0.1-beta.1","reqwest":"^2.0.5","tinper-bee":"latest","husky":"^4.2.5"}}