Skip to content

feat: ✨ 支持资源下载异常时处理 #69

feat: ✨ 支持资源下载异常时处理

feat: ✨ 支持资源下载异常时处理 #69

Workflow file for this run

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 }}