Skip to content

Commit

Permalink
Merge pull request #492 from advanced-chat/main
Browse files Browse the repository at this point in the history
chore: setup semantic release
  • Loading branch information
aerovulpe authored Dec 1, 2023
2 parents 871b4da + 4f7085d commit b6c7c0a
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 33 deletions.
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}
2 changes: 1 addition & 1 deletion 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
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.

0 comments on commit b6c7c0a

Please sign in to comment.