Skip to content

Commit 156cbbc

Browse files
authored
chore(ci): set up changesets (#613)
* chore: init configuration for semantic-release * chore: semver * chore(ci): add changeset configurations * Update config.json * add test changeset * fix changelog location * fix changelog location * fix changelog location * update misc * update changeset * update changelog location
1 parent 4739882 commit 156cbbc

File tree

6 files changed

+628
-1
lines changed

6 files changed

+628
-1
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"commit": false,
4+
"changelog": ["@changesets/changelog-github", { "repo": "computerization/enspire" }],
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "next",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/smooth-pens-share.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"enspire": major
3+
---
4+
👋 **Welcome to Enspire!**
5+
6+
C 社是服务类社团,其创始初心是为学校生活提供便利,如今我们发现,同学们 CAS 活动中遇到的管理、技术、宣传问题,是一个巨大的需求缺口。
7+
8+
Enspire 的目标很简单,**Make CAS life easier for everyone**. 我们希望通过 Enspire,让同学们能够更好地享受 CAS 活动,让社团能够更好地管理活动,让学校能够更好地支持活动。
9+
10+
虽然C社通过各种方法监控错误,但我们可能会遗漏一部分。如果您发现错误,请不要惊慌;错误在任何地方都存在。无论如何,我们都不会因为一次软件更新而导致数百万台电脑蓝屏 😏
11+
12+
如果您发现Bugs或想建议新功能,请在我们的 [GitHub](https://github.com/Computerization/Enspire/discussions/) 提出。
13+
14+
*Enjoy!*

.github/workflows/semver.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- next
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js 20
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 20
22+
23+
- name: Install Dependencies
24+
run: yarn
25+
26+
- name: Create Release Pull Request
27+
uses: changesets/action@v1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"name": "nuxt-app",
2+
"name": "enspire",
33
"type": "module",
4+
"version": "0.0.0",
45
"private": true,
56
"scripts": {
67
"build": "nuxt build",
@@ -15,6 +16,7 @@
1516
"typecheck": "vue-tsc --noEmit --skipLibCheck"
1617
},
1718
"dependencies": {
19+
"@changesets/cli": "^2.27.8",
1820
"@clerk/clerk-sdk-node": "^5.0.26",
1921
"@clerk/themes": "^2.1.19",
2022
"@nuxt/content": "^2.13.2",
@@ -47,6 +49,7 @@
4749
},
4850
"devDependencies": {
4951
"@antfu/eslint-config": "^2.25.0",
52+
"@changesets/changelog-github": "^0.5.0",
5053
"@nuxt/fonts": "^0.7.1",
5154
"@nuxt/image": "^1.7.0",
5255
"@nuxtjs/google-fonts": "^3.2.0",

0 commit comments

Comments
 (0)