Skip to content

Commit

Permalink
workflow: 完善发版流程
Browse files Browse the repository at this point in the history
  • Loading branch information
luochao committed Aug 14, 2021
1 parent c2043e3 commit 4a9611e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12.x
registry-url: https://npm.pkg.github.com
scope: '@wangeditor'

- name: Config .npmrc
run: echo "//npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
registry-url: https://registry.npmjs.com

- name: Install dependencies
run: yarn run bootstrap
Expand Down
8 changes: 8 additions & 0 deletions build/config/prd.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import cssnano from 'cssnano'
import { terser } from 'rollup-plugin-terser'
import cleanup from 'rollup-plugin-cleanup'
import commonConfig from './common'
import copy from 'rollup-plugin-copy'
import path from 'path'

const { input, output = {}, plugins = [], external } = commonConfig

Expand Down Expand Up @@ -39,5 +41,11 @@ export default {
extensions: ['.ts', '.tsx'],
}),
terser(), // 压缩 js
copy({
targets: [
{ src: path.resolve(__dirname, './package.json'), dest: 'dist' },
{ src: path.resolve(__dirname, './README.md'), dest: 'dist' },
],
}),
],
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wangeditor/core",
"version": "0.2.0",
"version": "0.3.2",
"description": "editor core",
"author": "wangfupeng1988 <[email protected]>",
"homepage": "https://github.com/wangeditor-team/we-2021#readme",
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wangeditor/editor-cattle",
"version": "0.2.0",
"version": "0.2.3",
"description": "editor entry",
"author": "wangfupeng1988 <[email protected]>",
"homepage": "https://github.com/wangeditor-team/we-2021#readme",
Expand Down Expand Up @@ -46,7 +46,7 @@
"@uppy/xhr-upload": "^1.7.4",
"@wangeditor/basic-modules": "^0.2.0",
"@wangeditor/code-highlight": "^0.1.1",
"@wangeditor/core": "^0.2.0",
"@wangeditor/core": "^0.3.2",
"@wangeditor/list-module": "^0.1.1",
"@wangeditor/table-module": "^0.1.1",
"@wangeditor/upload-image-module": "^0.2.0",
Expand Down

0 comments on commit 4a9611e

Please sign in to comment.