fix: JS面板保存后直接上传到服务器,减少一次页面保存的点击操作。和保存页面状态的逻辑保持一致 #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push And Create PR Check | |
on: | |
push: | |
branches: [] | |
pull_request: | |
branches: [develop,main] | |
jobs: | |
push-check: | |
runs-on: ubuntu-latest # windows-latest || macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install pnpm | |
run: npm i -g pnpm | |
- name: Install dependencies | |
run: pnpm i | |
- name: Get changed files | |
id: get_changed_files | |
uses: tj-actions/changed-files@v40 | |
with: | |
files: | | |
**.js | |
**.vue | |
**.jsx | |
- name: Run ESLint | |
run: npx eslint ${{steps.get_changed_files.outputs.all_changed_files}} | |
- name: Run Build | |
run: pnpm run build:plugin && pnpm run build:alpha |