Skip to content

Commit

Permalink
Merge pull request #213 from drackp2m/dev
Browse files Browse the repository at this point in the history
✨ feat: create first version of application
  • Loading branch information
drackp2m authored Nov 15, 2024
2 parents 469df13 + 5bb4ebe commit 9206ce7
Show file tree
Hide file tree
Showing 68 changed files with 7,038 additions and 11,206 deletions.
4 changes: 2 additions & 2 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ module.exports = {
},
{
value: 'revert',
name: 'revert: 🗑️ Reverts a previous commit',
emoji: '🗑 ',
name: 'revert: Reverts a previous commit',
emoji: '',
},
],
},
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"vscode": {
"settings": {
"editor.rulers": [100],
"clipboard-manager.maxClips": 1000,
"editor.linkedEditing": true,
"problems.showCurrentInStatus": true,
"javascript.updateImportsOnFileMove.enabled": "always",
Expand Down
6 changes: 2 additions & 4 deletions .devcontainer/docker-compose.yml.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
version: '3.8'

services:
playsetonline:
playsetonline-node:
build:
target: dev-attached
args:
USER_GID: 20
USER_UID: 501
USER_GID: 20
volumes:
- ~/.ssh:/home/node/.ssh:ro
- ~/.gnupg/pubring.kbx:/home/node/.gnupg/pubring.kbx:ro
Expand Down
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DB_USER=playsetonline
DB_PASS=password
DB_NAME=playsetonline
DB_NAME_TEST=playsetonline-test
DB_CERT=cert

API_PROTOCOL=https
API_DOMAIN=localhost
Expand Down
13 changes: 13 additions & 0 deletions .github/release-notes/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# v{{version}} ({{date}})

## What's Changed
{{#each commitGroups}}
### {{title}}

{{#each commits}}
* {{#if scope}}**{{scope}}**: {{/if}}{{subject}} ([{{shortHash}}]({{@root.host}}/{{@root.owner}}/{{@root.repository}}/commit/{{hash}})) by {{committer.name}}
{{/each}}

{{/each}}

**Full Changelog**: {{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}
50 changes: 43 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: deploy

on:
pull_request:
push:
branches:
- main
types: [closed]

permissions:
contents: read
contents: write
pages: write
id-token: write

concurrency:
group: 'pages'
group: 'deploy'
cancel-in-progress: true

jobs:
Expand All @@ -25,7 +24,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.9'
node-version: '23.1'
cache: 'npm'

- name: Install dependencies
Expand All @@ -38,9 +37,46 @@ jobs:
MIKRO_ORM_CLI_USE_TS_NODE: true
run: node --run test

build:
release:
runs-on: ubuntu-latest
needs: tests
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '23.1'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Import GPG key
env:
GPG_PRIVATE_KEY: ${{ secrets.SEMANTIC_RELEASE_GPG_PRIVATE_KEY }}
run: |
echo "$GPG_PRIVATE_KEY" > private.key
gpg --batch --import private.key
git config --global commit.gpgSign true
git config --global user.signingkey 8061777E7D988EE9
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
gpgconf --kill gpg-agent
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: 'romantic-release-bot'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_NAME: 'romantic-release-bot'
GIT_COMMITTER_EMAIL: '[email protected]'
run: node --run release

build:
runs-on: ubuntu-latest
needs: release
steps:
- name: Setup Pages
id: pages
Expand All @@ -52,7 +88,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.9'
node-version: '23.1'
cache: 'npm'

- name: Install dependencies
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/release.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ Thumbs.db
.pgdata*
.docker
.env
certs
19 changes: 18 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"svg.preview.background": "editor"
"svg.preview.background": "editor",
"workbench.colorCustomizations": {
"activityBar.background": "#00b058",
"activityBar.foreground": "#ffffff",
"activityBar.activeBorder": "#FFFF00",
"activityBarBadge.background": "#FFFF00",
"activityBarBadge.foreground": "#008844",
"titleBar.activeBackground": "#008040",
"titleBar.activeForeground": "#FFFFFF",
"titleBar.inactiveBackground": "#00b058",
"titleBar.inactiveForeground": "#ffffff70",
"statusBar.background": "#008040",
"statusBar.foreground": "#FFFFFF",
"statusBar.noFolderBackground": "#68217A",
"statusBar.debuggingBackground": "#CC0000",
"statusBar.noFolderForeground": "#FFFFFF",
"statusBar.debuggingForeground": "#FFFFFF"
}
}
Loading

0 comments on commit 9206ce7

Please sign in to comment.