Skip to content

Commit 9019311

Browse files
committed
ci: added release ci
1 parent d3bd5b3 commit 9019311

File tree

6 files changed

+176
-0
lines changed

6 files changed

+176
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: 🐞 Bug report
2+
title: '[BUG] - YOUR_ISSUE_TITLE_HERE_REPLACE_ME'
3+
description: Report an issue with ikun-svelte-devtools
4+
labels: [bug]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
id: bug-description
12+
attributes:
13+
label: Describe the bug
14+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
15+
placeholder: Bug description
16+
validations:
17+
required: false
18+
- type: input
19+
id: reproduction
20+
attributes:
21+
label: Reproduction
22+
description: Please provide a link via or a link to a repo that can reproduce the problem you ran into. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required.
23+
placeholder: Reproduction
24+
validations:
25+
required: false
26+
- type: textarea
27+
id: system-info
28+
attributes:
29+
label: System Info
30+
description: Output of `npx envinfo --system --npmPackages '{svelet,ikun-svelte-devtools/*}' --binaries --browsers`
31+
render: Shell
32+
placeholder: System, Binaries, Browsers
33+
validations:
34+
required: false
35+
- type: dropdown
36+
id: package-manager
37+
attributes:
38+
label: Used Package Manager
39+
description: Select the used package manager
40+
options:
41+
- npm
42+
- yarn
43+
- pnpm
44+
validations:
45+
required: true
46+
- type: checkboxes
47+
id: checkboxes
48+
attributes:
49+
label: Validations
50+
description: Before submitting the issue, please make sure you do the following
51+
options:
52+
- label: Check that there isn't [already an issue](https://github.com/ikun-svelte/ikun-svelte-devtools/issues) that reports the same bug to avoid creating a duplicate.
53+
required: true
54+
- label: Make sure this is a ikun-svelte-devtools issue and not a framework-specific issue. For example, if it's a Svelte SFC related bug, it should likely be reported to https://github.com/sveltejs/svelte instead.
55+
required: true
56+
- label: The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
57+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🧐 Long question or ideas?
4+
url: https://github.com/ikun-svelte/ikun-svelte-devtools/discussions
5+
about: Ask long-form questions and discuss ideas.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: 🚀 New feature proposal
2+
title: '[Feature Request] - YOUR_FEATURE_TITLE_HERE_REPLACE_ME'
3+
description: Propose a new feature to be added to ikun-svelte-devtools
4+
labels: [feature request]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for your interest in the project and taking the time to fill out this feature report! This issue form is for requesting features only! For example, requesting a new component, behavior ... etc
10+
- type: textarea
11+
id: feature-description
12+
attributes:
13+
label: Clear and concise description of the problem
14+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15+
validations:
16+
required: false
17+
- type: textarea
18+
id: suggested-solution
19+
attributes:
20+
label: Suggested solution
21+
description: A clear and concise description of what you want to happen.
22+
placeholder: |
23+
As a user, I expected ___ behavior but ___ ...
24+
25+
Ideal Steps I would like to see:
26+
1. Go to '...'
27+
2. Click on '....'
28+
3. ....
29+
validations:
30+
required: false
31+
- type: textarea
32+
validations:
33+
required: false
34+
attributes:
35+
label: Describe alternatives you've considered
36+
description: A clear and concise description of any alternative solutions or features you've considered.
37+
- type: textarea
38+
attributes:
39+
label: Screenshots or Videos
40+
description: |
41+
If applicable, add screenshots or a video to help explain your problem.
42+
For more information on the supported file image/file types and the file size limits, please refer
43+
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
44+
placeholder: |
45+
You can drag your video or image files inside of this editor ↓

.github/ISSUE_TEMPLATE/others.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Others
2+
3+
description: Create an issue for ikun-svelte-devtools
4+
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Description
10+
description: Clear and concise description of the issue. Thanks!
11+
placeholder: There are some thing I want to ...
12+
validations:
13+
required: true

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: 🎉 Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2
18+
19+
- name: Set node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 16.x
23+
cache: pnpm
24+
25+
- name: Install
26+
run: pnpm install --no-frozen-lockfile
27+
28+
- name: Set Timezone
29+
run: |
30+
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
31+
echo "Asia/Shanghai" | sudo tee /etc/timezone
32+
date
33+
shell: bash
34+
35+
- name: Build
36+
run: pnpm run build
37+
38+
- name: unit test
39+
run: pnpm run test
40+
41+
- name: Set npmrc for components
42+
run: |
43+
for package in components/*/; do
44+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ${package}/.npmrc
45+
done
46+
env:
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
49+
- name: Publish to npm
50+
run: pnpm run publish:script
51+
52+
- run: npx changelogithub
53+
continue-on-error: true
54+
env:
55+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}

PLAN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# PlAN
44

55
# drag
6+
67
# 关闭后会到 overview

0 commit comments

Comments
 (0)