Skip to content

Commit

Permalink
fix: enable semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
aerovulpe committed Nov 28, 2023
1 parent b68f50a commit ea02608
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 35 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}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
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 git@github.com:antoine92190/vue-advanced-chat.git main:gh-pages
git push -f git@github.com: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 ea02608

Please sign in to comment.