Skip to content

Commit

Permalink
feat: change github actions&scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
da730 committed Jan 29, 2024
1 parent bdd752d commit 933a0aa
Show file tree
Hide file tree
Showing 22 changed files with 104 additions and 338 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/bug-server.yml

This file was deleted.

124 changes: 0 additions & 124 deletions .github/workflows/hotfix-release.yml

This file was deleted.

File renamed without changes.
14 changes: 2 additions & 12 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: semver_parser
uses: xile611/read-package-version-action@main
with:
path: packages/vchart
path: packages/vmind
semver_string: ${{ github.ref_name }}
semver_pattern: '^pre-release/(.*)$' # ^v?(.*)$ by default

Expand All @@ -49,16 +49,6 @@ jobs:
NODE_OPTIONS: '--max_old_space_size=4096'
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: Build wx-vchart
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js build --only @visactor/wx-vchart

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand All @@ -72,7 +62,7 @@ jobs:
id: package-version
uses: xile611/read-package-version-action@main
with:
path: packages/vchart
path: packages/vmind

- name: Commit & Push changes
uses: actions-js/push@master
Expand Down
35 changes: 4 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
id: semver_parser
uses: xile611/read-package-version-action@main
with:
path: packages/vchart
path: packages/vmind
semver_string: ${{ github.ref_name }}
semver_pattern: '^release/(.*)$' # ^v?(.*)$ by default

Expand All @@ -51,37 +51,10 @@ jobs:
- name: Update version
run: node common/scripts/install-run-rush.js version --bump

- name: Build vutils-extension && vchart
- name: Build packages
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js build --to @visactor/vchart

# run bugserver after the build of main packages
- name: Run Bugserver
working-directory: ./packages/vchart
env:
BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }}
run: node ../../common/scripts/install-run-rushx.js ci

- name: Build react-vchart
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js build --only @visactor/react-vchart

- name: Build taro-vchart
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js build --only @visactor/taro-vchart

- 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: Build wx-vchart
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js build --only @visactor/wx-vchart
run: node common/scripts/install-run-rush.js build --only tag:package

- name: Publish to npm
env:
Expand All @@ -96,7 +69,7 @@ jobs:
id: package-version
uses: xile611/read-package-version-action@main
with:
path: packages/vchart
path: packages/vmind

- name: Commit & Push changes
run: |
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/size-limit.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
days-before-stale: 730
days-before-close: 7
stale-issue-message: 'This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.'
close-issue-message: 'This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of @VisActor/VChart, please open a new issue and link this to it. Thanks!'
close-issue-message: 'This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of @VisActor/VMind, please open a new issue and link this to it. Thanks!'
close-issue-reason: 'not_planned'
stale-issue-label: 'stale_issue'
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-main-to-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
id: package-version
uses: xile611/read-package-version-action@main
with:
path: packages/vchart
path: packages/vmind

- name: Create a new branch
run: |
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ jobs:
# Install rush
- name: Install rush
run: node common/scripts/install-run-rush.js install --bypass-policy
- name: Build vutils-extension
run: node common/scripts/install-run-rush.js build --only @visactor/vutils-extension
- name: Build VChart
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: node common/scripts/install-run-rush.js run -p @visactor/vchart -s build:ci

- name: Compile
run: node common/scripts/install-run-rush.js compile --only tag:package
- name: Test
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cjs
build
build-es5
*.zip

packages/calculator/lib

*.zip
stats.html
Expand Down Expand Up @@ -101,3 +101,5 @@ docs/public/documents

# env files
.env.local
packages/calculator/tsconfig.cjs.tsbuildinfo
packages/calculator/tsconfig.esm.tsbuildinfo
Loading

0 comments on commit 933a0aa

Please sign in to comment.