Skip to content

Commit 449f8ec

Browse files
committed
feat: add Google OAuth 2.0
Includes a `release.yml` GitHub actions workflow that releases/bumps the release of the REST API
1 parent 6d9dc45 commit 449f8ec

File tree

12 files changed

+14208
-4231
lines changed

12 files changed

+14208
-4231
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
HOSTNAME=xxxxxxxxx
22
PORT=xxxx
33
REDIS_PORT=xxxx
4+
CLIENT_ID=xxxxxxx

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ module.exports = {
2020
'max-classes-per-file': 'off',
2121
'default-param-last': 'off',
2222
// camelcase: 'off',
23+
'dot-notation': 'off',
2324
},
2425
}

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
---
4+
name: Release
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
issues: write
13+
pull-requests: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: latest
20+
- run: npm ci
21+
- run: npx semantic-release
22+
env:
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.releaserc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"branches": [
3+
"master"
4+
],
5+
"repositoryUrl": "https://github.com/sydrawat01/INFO7255.git",
6+
"plugins": [
7+
"@semantic-release/commit-analyzer",
8+
"@semantic-release/release-notes-generator",
9+
"@semantic-release/changelog",
10+
[
11+
"@semantic-release/npm",
12+
{
13+
"npmPublish": false
14+
}
15+
],
16+
[
17+
"@semantic-release/git",
18+
{
19+
"assets": [
20+
"package.json",
21+
"CHANGELOG.md"
22+
],
23+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
24+
}
25+
],
26+
"@semantic-release/github"
27+
],
28+
"release": {
29+
"verifyConditions": {
30+
"path": [
31+
"@semantic-release/changelog",
32+
"@semantic-release/github",
33+
"@semantic-release/git"
34+
]
35+
},
36+
"analyzeCommits": [
37+
"@semantic-release/commit-analyzer"
38+
],
39+
"generateNotes": [
40+
"@semantic-release/release-notes-generator",
41+
{
42+
"preset": "angular",
43+
"writerOpts": {
44+
"commitsSort": [
45+
"header"
46+
]
47+
}
48+
}
49+
],
50+
"prepare": [
51+
"@semantic-release/git",
52+
{
53+
"path": "@semantic-release/changelog",
54+
"changelogFile": "CHANGELOG.md"
55+
}
56+
],
57+
"publish": "@semantic-release/github",
58+
"success": "@semantic-release/github",
59+
"fail": "@semantic-release/github"
60+
}
61+
}

0 commit comments

Comments
 (0)