Skip to content

Commit

Permalink
fix: 修复依赖问题 (#15)
Browse files Browse the repository at this point in the history
* fix: 修复依赖问题

* docs: doc

Co-authored-by: 黄建峰 <[email protected]>
  • Loading branch information
crazyair and 黄建峰 authored May 20, 2020
1 parent 652751c commit 4772dc0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ nav:
order: 5
---

## [0.8.2](https://github.com/crazyair/yforms/compare/v0.8.1...v0.8.2) (2020-05-20)

### Bug Fixes

- 修复依赖问题 ([e693497](https://github.com/crazyair/yforms/commit/e69349760b38fb841e8d76e53b6333d285432bac))

## [0.8.1](https://github.com/crazyair/yforms/compare/v0.6.0...v0.8.1) (2020-05-20)

- 改名 yforms ([#14](https://github.com/crazyair/yforms/issues/14)) ([1c20a9f](https://github.com/crazyair/yforms/commit/1c20a9fb96aa532750a628a1befde8d6ef6bbf40))
Expand Down
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@
},
"license": "MIT",
"dependencies": {
"warning": "^4.0.3",
"antd": "^4.2.4",
"@ant-design/icons": "^4.0.3",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"numbro": "^2.2.0",
"nzh": "^1.0.4",
"dayjs": "^1.8.27",
"rc-queue-anim": "^1.8.4"
}
}
11 changes: 9 additions & 2 deletions packages/yforms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yforms",
"version": "0.8.1",
"version": "0.8.2",
"description": "自定义表单组件",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -29,7 +29,14 @@
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@babel/runtime": "^7.8.4"
"@babel/runtime": "^7.8.4",
"warning": "^4.0.3",
"antd": "^4.2.4",
"@ant-design/icons": "^4.0.3",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"numbro": "^2.2.0",
"nzh": "^1.0.4"
},
"license": "MIT"
}
6 changes: 3 additions & 3 deletions scripts/getChangeLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ const fs = require('fs');

const { readFileSync } = fs;

const stringFromFile = path => {
const stringFromFile = (path) => {
return readFileSync(path, 'utf-8');
};

const text = stringFromFile('./docs/changelog.md');
const versionLogs = text;

const allMatchingWords = versionLogs.split('## ');
const allMatchingWords = versionLogs.split('## [');
let changelog = allMatchingWords[1];
changelog = changelog.replace(/%/g, '%25');
changelog = changelog.replace(/\n/g, '%0A');
changelog = changelog.replace(/\r/g, '%0D');

const demo = `::set-output name=changelog::## ${changelog}`;
const demo = `::set-output name=changelog::## [${changelog}`;
// eslint-disable-next-line no-console
console.log(demo);

1 comment on commit 4772dc0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for website ready!

Built with commit 4772dc0

https://father-doc-yform-fpsrffd3q.now.sh

Please sign in to comment.