Skip to content

Commit

Permalink
feat: bugfix/ci pub (#498)
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree authored Nov 5, 2023
1 parent 0548c2d commit 59c7d69
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 21 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/call-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,8 @@ jobs:
- name: bump version
run: node common/scripts/install-run-rush.js version --bump

# - name: rush publish to npmjs.org
# run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch main --npm-auth-token ${NPM_TOKEN} --add-commit-details --set-access-level public
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: rush publish to npm.pkg.github.com
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --registry https://npm.pkg.github.com/ --target-branch main --npm-auth-token ${NPM_TOKEN} --add-commit-details --set-access-level public
- name: rush publish to npmjs.org
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --target-branch main --npm-auth-token ${NPM_TOKEN} --add-commit-details --set-access-level public
env:
NPM_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
<h1 align="center">Cats Cradle :yarn:</h1>

Embark on an nostalgic adventure with **Cats Cradle** - the upcoming co-op RPG
that will transport you to a world filled with wonder. Join us on this journey
as we flesh in the game and bring it to life.

This repo houses the game's code in a enterprise architecture monorepo. It
includes numerous microservices built on a PaaS with IaC for streamlined DevOps
CI/CD.

Although each package is maintained primarily for the game, most of the stable
packages are individually published to
[NPM](https://www.npmjs.com/search?q=%40cats-cradle) and available under
open-source software license.

[![CI](https://github.com/hxtree/cats-cradle/actions/workflows/on-merge.yml/badge.svg)](https://github.com/hxtree/cats-cradle/actions/workflows/on-merge.yml)
[![Code Quality](https://app.codacy.com/project/badge/Grade/8024531285164025aef972fcb059ea74)](https://www.codacy.com/gh/hxtree/cats-cradle/dashboard?utm_source=github.com&utm_medium=referral&utm_content=hxtree/cats-cradle&utm_campaign=Badge_Grade)
[![Codacy Coverage](https://app.codacy.com/project/badge/Coverage/8024531285164025aef972fcb059ea74)](https://app.codacy.com/gh/hxtree/cats-cradle)

Embark on a nostalgic adventure with **Cats Cradle**, the upcoming co-op RPG
that immerses you in a wondrous world. Join us on this journey as we develop and
bring the game to life.

This repo houses the game's code in a enterprise architecture monorepo. It
includes numerous microservices built on a PaaS with IaC for streamlined DevOps
CI/CD. While we maintain some packages primarily for the game, most we
individually publish to [NPM](https://www.npmjs.com/search?q=%40cats-cradle).

## Getting Started

For a turn-key development environment,
Expand All @@ -28,6 +24,8 @@ Codespaces.
Alternatively, build, test, and deploy apps locally using the
[devcontainer](docs/devcontainer.md).

## Architecture

![Flow Chart](docs/flow-chart-dark.drawio.svg)

### Pull Request Lifecycle (~5 mins)
Expand Down Expand Up @@ -94,6 +92,12 @@ the [code of conduct](docs/CODE_OF_CONDUCT.md).
<img src="https://contrib.rocks/image?repo=hxtree/cats-cradle" />
</a>

## License

Packages available on [NPM](https://www.npmjs.com/search?q=%40cats-cradle) are
MIT licensed. Packages without a specific license have not yet been developed
with reuse in mind and are primarily maintained for the game.

<p align="center">
:white_heart: / :hourglass: / :infinity:
</p>
107 changes: 106 additions & 1 deletion services/weather-control/openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,66 @@
}
}
}
},
"/v1/weather": {
"post": {
"operationId": "WeatherController_query",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/QueryDto" }
}
}
},
"responses": { "201": { "description": "" } }
}
},
"/weather": {
"post": {
"operationId": "WeatherController_query",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/QueryDto" }
}
}
},
"responses": { "201": { "description": "" } }
}
},
"/v1/weather/influence": {
"post": {
"operationId": "WeatherController_create",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateDto" }
}
}
},
"responses": { "201": { "description": "" } }
}
},
"/weather/influence": {
"post": {
"operationId": "WeatherController_create",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateDto" }
}
}
},
"responses": { "201": { "description": "" } }
}
}
},
"info": {
Expand All @@ -113,5 +173,50 @@
},
"tags": [],
"servers": [],
"components": { "schemas": {} }
"components": {
"schemas": {
"QueryDto": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Date",
"default": "2023-11-05T02:50:15.067Z"
},
"latitude": {
"type": "string",
"description": "Latitude",
"default": "38.2942"
},
"longitude": {
"type": "string",
"description": "Longitude",
"default": "141.4164"
}
},
"required": ["date", "latitude", "longitude"]
},
"CreateDto": {
"type": "object",
"properties": {
"mood": {
"type": "string",
"description": "Mood of the one who influences the in-game weather",
"default": "JOYFUL"
},
"latitude": {
"type": "string",
"description": "Latitude",
"default": "38.2942"
},
"longitude": {
"type": "string",
"description": "Longitude",
"default": "141.4164"
}
},
"required": ["mood", "latitude", "longitude"]
}
}
}
}

0 comments on commit 59c7d69

Please sign in to comment.