mirror of
https://github.com/VisActor/VChart
synced 2024-11-21 23:51:05 +00:00
chore: add build lark-vchart for pre-release and release action
This commit is contained in:
parent
168be9e7c1
commit
2c17297e09
5
.github/workflows/pre-release.yml
vendored
5
.github/workflows/pre-release.yml
vendored
@ -46,6 +46,11 @@ jobs:
|
||||
- name: Build packages
|
||||
run: node common/scripts/install-run-rush.js build --only tag:package
|
||||
|
||||
- name: Build lark-vchart
|
||||
env:
|
||||
NODE_OPTIONS: '--max_old_space_size=4096'
|
||||
run: node common/scripts/install-run-rush.js build --only @visactor/lark-vchart
|
||||
|
||||
- name: Publish to npm
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -40,6 +40,11 @@ jobs:
|
||||
- name: Build packages
|
||||
run: node common/scripts/install-run-rush.js build --only tag:package
|
||||
|
||||
- name: Build lark-vchart
|
||||
env:
|
||||
NODE_OPTIONS: '--max_old_space_size=4096'
|
||||
run: node common/scripts/install-run-rush.js build --only @visactor/lark-vchart
|
||||
|
||||
- name: Run Bugserver
|
||||
working-directory: ./packages/vchart
|
||||
env:
|
||||
|
@ -67,6 +67,10 @@ function run() {
|
||||
stdio: 'inherit',
|
||||
shell: false,
|
||||
});
|
||||
spawnSync('sh', ['-c', `rush build --only @visactor/lark-vchart`], {
|
||||
stdio: 'inherit',
|
||||
shell: false,
|
||||
});
|
||||
|
||||
// 3. publish to npm
|
||||
spawnSync('sh', ['-c', `rush publish --publish --include-all --tag ${preReleaseType}`], {
|
||||
|
@ -27,6 +27,10 @@ function run() {
|
||||
stdio: 'inherit',
|
||||
shell: false,
|
||||
});
|
||||
spawnSync('sh', ['-c', `rush build --only @visactor/lark-vchart`], {
|
||||
stdio: 'inherit',
|
||||
shell: false,
|
||||
});
|
||||
|
||||
// 3. publish to npm
|
||||
spawnSync('sh', ['-c', 'rush publish --publish --include-all'], {
|
||||
|
Loading…
Reference in New Issue
Block a user