Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup semantic release #492

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Clone the repository using `git clone https://github.com/YOUR_USERNAME/vue-advanced-chat`
- Go inside your cloned repository and run `npm install`
- Go inside the `demo` folder and run `npm install`
- If you want to test using Firebase, you can follow the steps [here](https://github.com/antoine92190/vue-advanced-chat#using-with-firestore)
- If you want to test using Firebase, you can follow the steps [here](https://github.com/advanced-chat/vue-advanced-chat#using-with-firestore)
- You can use the code in `demo/src/ChatContainer.vue` or write your own code to test the chat
- Run `npm run serve` inside the `demo` folder to open the demo app
- You need to uncomment `import { register } from './../../src/lib/index.js'` to use the chat code locally and see your modifications live
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A clear and concise description of what the bug is.
## Steps to reproduce

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

Example:

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -15,13 +18,16 @@ jobs:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: 18

- name: Install dependencies
run: npm install

- name: Build distribution
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
21 changes: 21 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- - "@semantic-release/changelog"
- changelogFile: "CHANGELOG.md"
- - "@semantic-release/npm"
- npmPublish: true
- - "@semantic-release/github"
- assets:
- "dist/**"
- "LICENSE"
# enable this when GITHUB_TOKEN with the appropriate permissions is available
# - - "@semantic-release/git"
# - assets:
# - "CHANGELOG.md"
# message: "chore(release): prepare ${nextRelease.version} [skip ci]"

branches:
- name: "main"

tagFormat: ${version}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<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>
<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>
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/npm/dm/vue-advanced-chat.svg"></a>
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/bundlephobia/minzip/vue-advanced-chat"></a>
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/npm/v/vue-advanced-chat.svg"></a>
Expand Down Expand Up @@ -101,15 +101,15 @@ compilerOptions: {
}
```

Demo: https://github.com/antoine92190/vue-advanced-chat-sandbox/tree/main
Demo: https://github.com/advanced-chat/vue-advanced-chat-sandbox/tree/main

### React

Demo: https://github.com/antoine92190/vue-advanced-chat-sandbox/tree/react
Demo: https://github.com/advanced-chat/vue-advanced-chat-sandbox/tree/react

### Angular / Ionic

Demo: https://github.com/antoine92190/vue-advanced-chat-sandbox/tree/angular
Demo: https://github.com/advanced-chat/vue-advanced-chat-sandbox/tree/angular

<br>

Expand Down
4 changes: 2 additions & 2 deletions demo/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ git init
git add -A
git commit -m 'deploy'

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

cd -
cd -
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"reset": "rm -rf node_modules && rm -rf package-lock.json && npm i",
"reset-all": "npm run reset && cd .. && npm run reset",
"gpages": "sh deploy.sh",
"latest": "npm i https://github.com/antoine92190/vue-advanced-chat/tarball/master"
"latest": "npm i https://github.com/advanced-chat/vue-advanced-chat/tarball/master"
},
"dependencies": {
"firebase": "9.4.0",
Expand Down
2 changes: 1 addition & 1 deletion demo/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Dark
</button>
<button class="button-github">
<a href="https://github.com/antoine92190/vue-advanced-chat">
<a href="https://github.com/advanced-chat/vue-advanced-chat">
<img src="@/assets/github.svg" />
</a>
</button>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/antoine92190/vue-advanced-chat.git"
"url": "git+https://github.com/advanced-chat/vue-advanced-chat.git"
},
"bugs": {
"url": "https://github.com/antoine92190/vue-advanced-chat/issues"
"url": "https://github.com/advanced-chat/vue-advanced-chat/issues"
},
"homepage": "https://github.com/antoine92190/vue-advanced-chat#readme",
"homepage": "https://github.com/advanced-chat/vue-advanced-chat#readme",
"main": "./dist/vue-advanced-chat.umd.js",
"module": "./dist/vue-advanced-chat.es.js",
"unpkg": "./dist/vue-advanced-chat.umd.js",
Expand Down
21 changes: 0 additions & 21 deletions release.config.js

This file was deleted.

Loading