Skip to content

Commit

Permalink
fix: 自动化
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian55 committed Apr 24, 2020
1 parent 1f5a175 commit e5057c8
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 70 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}
71 changes: 1 addition & 70 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,70 +1 @@
{
"name": "bee-message",
"version": "2.1.6",
"description": "Message ui component for react",
"keywords": [
"react",
"react-component",
"bee-message",
"iuap-design",
"tinper-bee",
"Message"
],
"engines": {
"node": ">=4.0.0"
},
"homepage": "https://github.com/tinper-beebee-message.git",
"author": "Yonyou FED",
"repository": "http://github.com/tinper-bee/bee-message",
"bugs": "https://github.com/tinper-beebee-message.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": "bee-tools run test",
"chrome": "bee-tools run chrome",
"coveralls": "bee-tools run coverage",
"browsers": "bee-tools run browsers",
"pub": "bee-tools run pub"
},
"dependencies": {
"bee-icon": "latest",
"bee-notification": "latest",
"classnames": "^2.2.5",
"tinper-bee-core": "latest",
"warning": "^4.0.3"
},
"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-form": "^2.0.11",
"bee-form-control": "^2.0.2",
"bee-label": "^1.0.0",
"bee-layout": "latest",
"bee-modal": "^2.0.8",
"bee-panel": "latest",
"bee-table": "^2.0.16",
"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.0",
"react-addons-test-utils": "15.3.2",
"react-dom": "~15.3.0"
}
}
{"name":"bee-message","version":"2.1.6","description":"Message ui component for react","keywords":["react","react-component","bee-message","iuap-design","tinper-bee","Message"],"engines":{"node":">=4.0.0"},"homepage":"https://github.com/tinper-beebee-message.git","author":"Yonyou FED","repository":"http://github.com/tinper-bee/bee-message","bugs":"https://github.com/tinper-beebee-message.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":"bee-tools run test","chrome":"bee-tools run chrome","coveralls":"bee-tools run coverage","browsers":"bee-tools 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":{"bee-icon":"latest","bee-notification":"latest","classnames":"^2.2.5","tinper-bee-core":"latest","warning":"^4.0.3"},"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-form":"^2.0.11","bee-form-control":"^2.0.2","bee-label":"^1.0.0","bee-layout":"latest","bee-modal":"^2.0.8","bee-panel":"latest","bee-table":"^2.0.16","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.0","react-addons-test-utils":"15.3.2","react-dom":"~15.3.0","husky":"^4.2.5"}}

0 comments on commit e5057c8

Please sign in to comment.