-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): test stable release (#59)
* fix(docs): rewrite prettier setup (#40) * chore(docs): rewrite commitlint config (#47) * fix(docs): update typescript config (#48) * fix(docs): update Semantic Release config (#50) * fix(docs): update Vitest config (#51) * fix(docs): update Code Quality Workflow documentation (#52) * fix(docs): update Vitest documentation * fix(config): update Test action documentation (#53) * feat(config): update writerside ci pipeline (#54) * fix(config): update writerside ci pipeline (#55) * fix(config): update writerside ci pipeline * fix(config): update writerside documentation * fix(config): release documentation (#56) * feat(config): adds release workflow (#57) * chore(config): checks legal checkboxes (#58)
- Loading branch information
1 parent
6dfa0a9
commit 2f20329
Showing
40 changed files
with
1,751 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
src/vitest/setup.react.ts | ||
src/vitest/vite.react.ts | ||
|
||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: 'Deploy' | ||
description: 'Deploys the application to Fly.io for staging and production environments.' | ||
|
||
inputs: | ||
commit_sha: | ||
description: 'Commit SHA for deployment' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '50' | ||
|
||
- name: Read app name | ||
uses: SebRollen/[email protected] | ||
id: app_name | ||
with: | ||
file: 'fly.toml' | ||
field: 'app' | ||
|
||
- name: Setup Fly | ||
uses: superfly/flyctl-actions/[email protected] | ||
|
||
- name: Deploy Dev | ||
if: ${{ github.ref == 'refs/heads/dev' }} | ||
shell: bash | ||
run: | | ||
flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ inputs.commit_sha }} --app ${{ steps.app_name.outputs.value }}-staging | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
|
||
- name: Deploy Production | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
shell: bash | ||
run: | | ||
flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ inputs.commit_sha }} --build-secret SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
|
||
- name: Set Deployed Version | ||
id: set_version | ||
shell: bash | ||
run: | | ||
VERSION=$(jq -r .version package.json) | ||
echo "deployed_version=${VERSION}" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
uses: kurocado-studio/styleguide/.github/workflows/lint.yml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test: | ||
needs: lint | ||
uses: kurocado-studio/styleguide/.github/workflows/test.yml@main | ||
secrets: inherit | ||
|
||
document: | ||
needs: test | ||
uses: kurocado-studio/styleguide/.github/workflows/writerside-documentation@main | ||
secrets: inherit | ||
|
||
release: | ||
needs: document | ||
uses: kurocado-studio/styleguide/.github/workflows/release.yml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
PAT_FORCE_PUSH: ${{ secrets.GITHUB_TOKEN }} | ||
if: | | ||
github.event_name == 'push' && | ||
github.ref == 'refs/heads/main' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Deployment Pipeline | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
deploy: | ||
if: github.event.pull_request.merged == true | ||
uses: kurocado-studio/styleguide/.github/actions/deploy@main | ||
with: | ||
commit_sha: ${{ github.event.pull_request.merge_commit_sha }} | ||
secrets: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Contributing | ||
|
||
Thanks for your willingness to contribute! Please make sure to check with us before doing a bunch of | ||
work on something. | ||
|
||
## Before Contributing | ||
|
||
**[See contributing @ Kurocado Studio](https://kurocado-studio.github.io/styleguide/contributing.html)** | ||
|
||
## Project setup | ||
|
||
If you do need to set the project up locally yourself, feel free to follow these instructions: | ||
|
||
### System Requirements | ||
|
||
- [Node.js](https://nodejs.org/) >= 20.0.0 | ||
- [npm](https://npmjs.com/) >= 8.18.0 | ||
- [git](https://git-scm.com/) >= 2.38.0 | ||
|
||
### Setup steps | ||
|
||
- Fork repo | ||
- clone the repo | ||
- Run `npm install` to install dependencies and run validation | ||
- Create a branch for your PR with `git checkout -b pr/your-branch-name` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
uses: kurocado-studio/styleguide/.github/workflows/lint.yml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
document: | ||
needs: lint | ||
uses: kurocado-studio/styleguide/.github/workflows/writerside-documentation@main | ||
secrets: inherit | ||
|
||
test: | ||
uses: kurocado-studio/styleguide/.github/workflows/test.yml@main | ||
secrets: inherit | ||
|
||
release: | ||
needs: documentation | ||
uses: kurocado-studio/styleguide/.github/workflows/release.yml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
PAT_FORCE_PUSH: ${{ secrets.PAT_FORCE_PUSH }} | ||
if: | | ||
github.event_name == 'push' && | ||
github.ref == 'refs/heads/main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.