fix: 🐛 修复识别文字显示时颜色随网站改变的异常 #29
This file contains hidden or 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: Publish Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: Release | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| - name: Set node version to 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| cache: pnpm | |
| - name: Install | |
| run: | | |
| pnpm install --frozen-lockfile | |
| pnpm build | |
| - name: Push UserScript | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| id: auto-commit-action | |
| with: | |
| commit_message: 'build: :package: build user script' | |
| file_pattern: dist | |
| - name: Create Release And Tag | |
| uses: changesets/action@v1 | |
| with: | |
| publish: npx @changesets/cli tag | |
| commit: 'release: :rocket: release version' | |
| title: 'release: release version' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |