-
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.
🔧 Update prettier and format project
- Loading branch information
1 parent
9082b13
commit 9cadbba
Showing
8 changed files
with
82 additions
and
63 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
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,24 +1,23 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: [self-hosted, debian-stable] | ||
steps: | ||
- name: Clean Workspace | ||
uses: mickem/clean-after-action@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Compile | ||
run: npm run tsc | ||
|
||
build: | ||
runs-on: [self-hosted, debian-stable] | ||
steps: | ||
- name: Clean Workspace | ||
uses: mickem/clean-after-action@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Compile | ||
run: npm run tsc |
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,35 +1,34 @@ | ||
name: Publish package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: [self-hosted, debian-stable] | ||
steps: | ||
- name: Clean Workspace | ||
uses: mickem/clean-after-action@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@ZeroGachis' | ||
# Skip post-install scripts here, as a malicious | ||
# script could steal GITHUB_TOKEN. | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# `npm rebuild` will run all those post-install scripts for us. | ||
- name: Rebuild & Prepare dependencies | ||
run: npm rebuild && npm run prepare --if-present | ||
- name: Compile | ||
run: npm run tsc | ||
- name: Publish to Github Registry | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
build: | ||
runs-on: [self-hosted, debian-stable] | ||
steps: | ||
- name: Clean Workspace | ||
uses: mickem/clean-after-action@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@ZeroGachis' | ||
# Skip post-install scripts here, as a malicious | ||
# script could steal GITHUB_TOKEN. | ||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# `npm rebuild` will run all those post-install scripts for us. | ||
- name: Rebuild & Prepare dependencies | ||
run: npm rebuild && npm run prepare --if-present | ||
- name: Compile | ||
run: npm run tsc | ||
- name: Publish to Github Registry | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore artifacts: | ||
build | ||
coverage |
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ const App = () => { | |
); | ||
}; | ||
|
||
export default App; | ||
export default App; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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