Skip to content

Commit

Permalink
feat: initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rpidanny committed Aug 3, 2024
0 parents commit 776d26c
Show file tree
Hide file tree
Showing 31 changed files with 26,823 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

{
"extends": "@commitlint/config-conventional"
}
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@rpidanny/eslint-config-typescript"
}
54 changes: 54 additions & 0 deletions .github/workflows/on-merge-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: On Merge to Main

on:
push:
branches:
- "main"

jobs:
create-release:
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
pages: write
deployments: write
issues: write
pull-requests: write
packages: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run release

deploy:
name: Deploy
needs: create-release
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run build
- run: npm test
- uses: actions/upload-pages-artifact@v3
with:
path: "build"
- uses: actions/deploy-pages@v4
28 changes: 28 additions & 0 deletions .github/workflows/on-push-non-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: On Push Non Main

on:
push:
branches-ignore:
- "main"

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
env:
CI: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run build
- run: npm test
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.ts": "eslint"
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.12.2
94 changes: 94 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "docs",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "docs",
"release": "patch"
},
{
"type": "refactor",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES"
]
}
}
],
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/github",
{
"assets": []
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"package-lock.json"
],
"message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
}
]
]
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Travel Bingo

[![On Merge Main](https://github.com/geo-quest/geo-quest.github.io/actions/workflows/on-merge-main.yaml/badge.svg?branch=main)](https://github.com/geo-quest/geo-quest.github.io/actions/workflows/on-merge-main.yaml)

![geo-quest](public/geo-quest-logo_512.png)

Online at: https://geo-quest.github.io
Loading

0 comments on commit 776d26c

Please sign in to comment.