Skip to content

Commit

Permalink
feat: add issue template and release
Browse files Browse the repository at this point in the history
  • Loading branch information
freeshineit committed Jul 31, 2024
1 parent 1536b79 commit 8f99d3d
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Bug report
about: 创建报告以帮助我们改进( Create a report to help us improve)
title: ''
labels: ''
assignees: ''
---

**bug 描述(Describe the bug)**

对bug是什么的清晰简洁的描述。 (A clear and concise description of what the bug is.)

**复现(To Reproduce)**

再现步骤(Steps to reproduce the behavior):

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**预期行为(Expected behavior)**

对你期望发生的事情的清晰简洁的描述。 (A clear and concise description of what you expected to happen.)

**截图(Screenshots)**

如果适用,请添加屏幕截图以帮助解释您的问题。 (If applicable, add screenshots to help explain your problem.)

**PC 请填写以下信息 (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**mobile 请填写以下信息 (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**附加上下文(Additional context)**

在此处添加有关该问题的任何其他上下文。 (Add any other context about the problem here.)

39 changes: 39 additions & 0 deletions .github/workflows/relese.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 整个流程的名字
name: Release
# 触发时机,在 tag 被 push 操作触发
on:
push:
tags:
- "v*"
# 任务,定义个changelog 的任务
jobs:
changelog:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# # 设置 pnpm
# - name: Setup PNPM
# uses: pnpm/action-setup@v2
# with:
# version: 8
# 设置 Node
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
registry-url: https://registry.npmjs.org
# 安装依赖
- name: Install dependencies
run: npm install
# # 打包
# - name: Build Packages
# run: pnpm run build
# 发布npm 发布前执行了prepublishOnly
- name: Publish npm
run: npm publish
env:
# 这里需要几个 Token 变量
# NPM_TOKEN 需要在 npm 网站生成
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8f99d3d

Please sign in to comment.