Skip to content

Commit 271aef4

Browse files
liujupingJackLian
authored andcommitted
chore: add publish engine actions
1 parent 07ee7e0 commit 271aef4

File tree

5 files changed

+60
-3
lines changed

5 files changed

+60
-3
lines changed

.github/workflows/publish docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- develop
77
paths:
8-
- 'docs/**'
8+
- 'docs/docs/**'
99

1010
jobs:
1111
publish-docs:
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update and Publish Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- 'release/[0-9]+.[0-9]+.[0-9]+-beta'
7+
paths:
8+
- 'packages/**'
9+
10+
jobs:
11+
publish-engine:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '14'
19+
registry-url: 'https://registry.npmjs.org'
20+
- run: npm install && npm run setup
21+
- run: |
22+
npm run build
23+
git config --local user.email "[email protected]"
24+
git config --local user.name "GitHub Action"
25+
- run: npm run pub:prerelease
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
- name: Get version
29+
id: get_version
30+
run: echo "::set-output name=version::$(node -p "require('./docs/package.json').version")"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update and Publish Docs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish-engine:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup Node.js
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '14'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm install && npm run setup
17+
- run: |
18+
npm run build
19+
git config --local user.email "[email protected]"
20+
git config --local user.name "GitHub Action"
21+
- run: npm run pub
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- name: Get version
25+
id: get_version
26+
run: echo "::set-output name=version::$(node -p "require('./docs/package.json').version")"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"lint:fix": "f2elint fix -i ./packages/*/src",
2121
"lint:modules": "f2elint scan -q -i ./modules/*/src",
2222
"lint:modules:fix": "f2elint fix -i ./modules/*/src",
23-
"pub": "npm run watchdog:build && lerna publish patch --force-publish --exact --no-changelog",
23+
"pub": "npm run watchdog:build && lerna publish patch --yes --force-publish --exact --no-changelog",
2424
"pub:premajor": "npm run watchdog:build && lerna publish premajor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2525
"pub:preminor": "npm run watchdog:build && lerna publish preminor --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2626
"pub:prepatch": "npm run watchdog:build && lerna publish prepatch --force-publish --exact --dist-tag beta --preid beta --no-changelog",
27-
"pub:prerelease": "npm run watchdog:build && lerna publish prerelease --force-publish --exact --dist-tag beta --preid beta --no-changelog",
27+
"pub:prerelease": "npm run watchdog:build && lerna publish prerelease --yes --force-publish --exact --dist-tag beta --preid beta --no-changelog",
2828
"setup": "node ./scripts/setup.js",
2929
"setup:test": "./scripts/setup-for-test.sh",
3030
"setup:skip-build": "./scripts/setup-skip-build.sh",

packages/editor-skeleton/src/layouts/workbench.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ body {
105105
right: 0;
106106
bottom: 0;
107107
z-index: -1;
108+
overflow: hidden;
108109

109110
&.active {
110111
z-index: 999;

0 commit comments

Comments
 (0)