fix: 自动化

This commit is contained in:
liushaozhen 2020-04-24 17:14:57 +08:00
parent 05d98b035e
commit d2143aa580
4 changed files with 55 additions and 72 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,72 +1 @@
{
"name": "bee-transfer",
"version": "2.0.13",
"description": "Transfer ui component for react",
"keywords": [
"react",
"react-component",
"bee-transfer",
"iuap-design",
"tinper-bee",
"Transfer"
],
"engines": {
"node": ">=4.0.0"
},
"homepage": "https://github.com/tinper-bee/bee-transfer.git",
"author": "Yonyou FED",
"repository": "http://github.com/tinper-bee/bee-transfer",
"bugs": "https://github.com/tinper-bee/bee-transfer.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-test run lint",
"test": "bee-tools-test run test",
"chrome": "bee-tools-test run chrome",
"coveralls": "bee-tools-test run coverage",
"browsers": "bee-tools-test run browsers",
"pub": "bee-tools run pub"
},
"dependencies": {
"babel-runtime": "^6.23.0",
"bee-animate": "^1.0.0",
"bee-button": "latest",
"bee-checkbox": "latest",
"bee-form-control": "latest",
"bee-icon": "latest",
"classnames": "^2.2.5",
"react-beautiful-dnd": "^9.0.2",
"react-lazy-load": "^3.0.12",
"shallowequal": "^1.0.2",
"tinper-bee-core": "latest"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0",
"react-dom": "^15.3.0 || ^16.0",
"prop-types": "15.6.0"
},
"devDependencies": {
"bee-button": "latest",
"bee-clipboard": "^2.0.0",
"bee-drawer": "0.0.2",
"bee-layout": "latest",
"bee-panel": "latest",
"bee-tree": "^2.0.11",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^2.4.1",
"es5-shim": "~4.1.10",
"react": "15.3.2",
"react-addons-test-utils": "15.3.2",
"react-dom": "15.3.2"
}
}
{"name":"bee-transfer","version":"2.0.13","description":"Transfer ui component for react","keywords":["react","react-component","bee-transfer","iuap-design","tinper-bee","Transfer"],"engines":{"node":">=4.0.0"},"homepage":"https://github.com/tinper-bee/bee-transfer.git","author":"Yonyou FED","repository":"http://github.com/tinper-bee/bee-transfer","bugs":"https://github.com/tinper-bee/bee-transfer.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-test run lint","test":"bee-tools-test run test","chrome":"bee-tools-test run chrome","coveralls":"bee-tools-test run coverage","browsers":"bee-tools-test run browsers","pub":"bee-tools run pub","version":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","postversion":"git push --follow-tags","prepublishOnly":"npm run build"},"dependencies":{"babel-runtime":"^6.23.0","bee-animate":"^1.0.0","bee-button":"latest","bee-checkbox":"latest","bee-form-control":"latest","bee-icon":"latest","classnames":"^2.2.5","react-beautiful-dnd":"^9.0.2","react-lazy-load":"^3.0.12","shallowequal":"^1.0.2","tinper-bee-core":"latest"},"peerDependencies":{"react":"^15.3.0 || ^16.0","react-dom":"^15.3.0 || ^16.0","prop-types":"15.6.0"},"devDependencies":{"bee-button":"latest","bee-clipboard":"^2.0.0","bee-drawer":"0.0.2","bee-layout":"latest","bee-panel":"latest","bee-tree":"^2.0.11","chai":"^3.5.0","console-polyfill":"~0.2.1","cz-conventional-changelog":"^2.1.0","enzyme":"^2.4.1","es5-shim":"~4.1.10","react":"15.3.2","react-addons-test-utils":"15.3.2","react-dom":"15.3.2","husky":"^4.2.5"}}