diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..f913b20 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,24 @@ +## Pull Request + +**Description:** +Describe the purpose of this pull request. + +**Changes:** +- [ ] Feature A +- [ ] Bugfix B + +**Related Issues:** +- Closes #123 +- Addresses #456 + +**Testing:** +Describe any testing steps that have been taken or are necessary. +Make sure to take in account any existing code change that require some feature to be re-tested. + + +**Checklist:** +- [ ] Code follows project coding standards +- [ ] Tests have been added or updated +- [ ] Code Review +- [ ] Manual test after merge +- [ ] All checks passed \ No newline at end of file diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 0000000..aca8805 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -0,0 +1,68 @@ +name: Publish + +on: + pull_request: + types: + - closed + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - run: npm ci + + publish-gpr: + if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.head.label == 'video-db:release') + needs: build + runs-on: ubuntu-latest + permissions: + packages: write + contents: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@main + - name: Check Version for Tag + id: npm-tag + run: | + VERSION=${{ steps.package-version.outputs.current-version }} + if [[ $VERSION == *beta* || $VERSION == *alpha* || $VERSION == *rc* ]]; then + echo "tag=next" >> $GITHUB_OUTPUT + else + echo "tag=latest" >> $GITHUB_OUTPUT + fi + ############# TAG RELEASE ############## + - name: 'Push tag v${{ steps.package-version.outputs.current-version }}' + if: steps.npm-tag.outputs.tag == 'latest' + uses: rickstaa/action-create-tag@v1 + id: tag_version + with: + tag: 'v${{ steps.package-version.outputs.current-version }}' + ############# GITHUB RELEASE ############## + - name: Extract release notes + id: extract-release-notes + uses: ffurrer2/extract-release-notes@v1 + - name: 'Create a GitHub release v${{ steps.package-version.outputs.current-version }}' + if: steps.npm-tag.outputs.tag == 'latest' + uses: ncipollo/release-action@v1 + with: + tag: 'v${{ steps.package-version.outputs.current-version }}' + name: 'Release v${{ steps.package-version.outputs.current-version }}' + body: | + ${{ steps.extract-release-notes.outputs.release_notes }} + - run: npm ci + - run: npm publish --access public --tag ${{ steps.npm-tag.outputs.tag }} + env: + NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d011b15 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +*.log +.DS_Store +node_modules +dist + +packages/docs/.vitepress/cache +packages/*/dist +packages/*/types + +*.tsbuildinfo + +TODO.md \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b8b74f7 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "plugins": ["prettier-plugin-tailwindcss"], + "tailwindConfig": "./tailwind.config.js" + } + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b985c6 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# 💬 VideoDB Chat + +[![NPM version][npm-shield]][npm-url] +[![Stargazers][stars-shield]][stars-url] +[![Issues][issues-shield]][issues-url] +[![Website][website-shield]][website-url] +[![Discord][discord-shield]][discord-url] + + +
+
+
+ Couldn't find any matching results for your query. Try searching for + something else? +
++ Couldn't find any matching results for your query. Try searching for + something else? +
+
+
+
+ Couldn't find any matching results for your query. Try searching for + something else? +
+
+