Skip to content

Commit b6c7c0a

Browse files
authored
Merge pull request #492 from advanced-chat/main
chore: setup semantic release
2 parents 871b4da + 4f7085d commit b6c7c0a

File tree

10 files changed

+39
-33
lines changed

10 files changed

+39
-33
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Clone the repository using `git clone https://github.com/YOUR_USERNAME/vue-advanced-chat`
77
- Go inside your cloned repository and run `npm install`
88
- Go inside the `demo` folder and run `npm install`
9-
- If you want to test using Firebase, you can follow the steps [here](https://github.com/antoine92190/vue-advanced-chat#using-with-firestore)
9+
- If you want to test using Firebase, you can follow the steps [here](https://github.com/advanced-chat/vue-advanced-chat#using-with-firestore)
1010
- You can use the code in `demo/src/ChatContainer.vue` or write your own code to test the chat
1111
- Run `npm run serve` inside the `demo` folder to open the demo app
1212
- You need to uncomment `import { register } from './../../src/lib/index.js'` to use the chat code locally and see your modifications live

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A clear and concise description of what the bug is.
1515
## Steps to reproduce
1616

1717
Describe us how we could reproduce the bug you're trying to report
18-
You can also use https://github.com/antoine92190/vue-advanced-chat-sandbox and share the source code to reproduce the bug.
18+
You can also use https://github.com/advanced-chat/vue-advanced-chat-sandbox and share the source code to reproduce the bug.
1919

2020
Example:
2121

.github/workflows/release.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
release:
1013
runs-on: ubuntu-latest
@@ -15,13 +18,16 @@ jobs:
1518
fetch-depth: 0
1619

1720
- name: Setup Node.js
18-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v4
1922
with:
20-
node-version: '16.x'
23+
node-version: 18
2124

2225
- name: Install dependencies
2326
run: npm install
2427

28+
- name: Build distribution
29+
run: npm run build
30+
2531
- name: Release
2632
env:
2733
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
plugins:
2+
- "@semantic-release/commit-analyzer"
3+
- "@semantic-release/release-notes-generator"
4+
- - "@semantic-release/changelog"
5+
- changelogFile: "CHANGELOG.md"
6+
- - "@semantic-release/npm"
7+
- npmPublish: true
8+
- - "@semantic-release/github"
9+
- assets:
10+
- "dist/**"
11+
- "LICENSE"
12+
# enable this when GITHUB_TOKEN with the appropriate permissions is available
13+
# - - "@semantic-release/git"
14+
# - assets:
15+
# - "CHANGELOG.md"
16+
# message: "chore(release): prepare ${nextRelease.version} [skip ci]"
17+
18+
branches:
19+
- name: "main"
20+
21+
tagFormat: ${version}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<a href="https://github.com/advanced-chat/vue-advanced-chat/actions/workflows/build.yml"><img src="https://img.shields.io/github/actions/workflow/status/advanced-chat/vue-advanced-chat/build.yml?branch=master"></a>
2+
<a href="https://github.com/advanced-chat/vue-advanced-chat/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/advanced-chat/vue-advanced-chat/release.yml?branch=main"></a>
33
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/npm/dm/vue-advanced-chat.svg"></a>
44
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/bundlephobia/minzip/vue-advanced-chat"></a>
55
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/npm/v/vue-advanced-chat.svg"></a>

demo/deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ git init
1010
git add -A
1111
git commit -m 'deploy'
1212

13-
git push -f [email protected]:antoine92190/vue-advanced-chat.git main:gh-pages
13+
git push -f [email protected]:advanced-chat/vue-advanced-chat.git main:gh-pages
1414

15-
cd -
15+
cd -

demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"reset": "rm -rf node_modules && rm -rf package-lock.json && npm i",
1414
"reset-all": "npm run reset && cd .. && npm run reset",
1515
"gpages": "sh deploy.sh",
16-
"latest": "npm i https://github.com/antoine92190/vue-advanced-chat/tarball/master"
16+
"latest": "npm i https://github.com/advanced-chat/vue-advanced-chat/tarball/master"
1717
},
1818
"dependencies": {
1919
"firebase": "9.4.0",

demo/src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Dark
3434
</button>
3535
<button class="button-github">
36-
<a href="https://github.com/antoine92190/vue-advanced-chat">
36+
<a href="https://github.com/advanced-chat/vue-advanced-chat">
3737
<img src="@/assets/github.svg" />
3838
</a>
3939
</button>

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
],
2121
"repository": {
2222
"type": "git",
23-
"url": "git+https://github.com/antoine92190/vue-advanced-chat.git"
23+
"url": "git+https://github.com/advanced-chat/vue-advanced-chat.git"
2424
},
2525
"bugs": {
26-
"url": "https://github.com/antoine92190/vue-advanced-chat/issues"
26+
"url": "https://github.com/advanced-chat/vue-advanced-chat/issues"
2727
},
28-
"homepage": "https://github.com/antoine92190/vue-advanced-chat#readme",
28+
"homepage": "https://github.com/advanced-chat/vue-advanced-chat#readme",
2929
"main": "./dist/vue-advanced-chat.umd.js",
3030
"module": "./dist/vue-advanced-chat.es.js",
3131
"unpkg": "./dist/vue-advanced-chat.umd.js",

release.config.js

-21
This file was deleted.

0 commit comments

Comments
 (0)