-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use typsafe env in @stax/backend add workflows for doing releases use workspaces publish change @Stax to @roninjin10 pnpm update -r fix broken ci scripts fix typesafe-env docs private: true in root
- Loading branch information
Will Cory
authored and
Will Cory
committed
Jan 7, 2023
1 parent
a7ff567
commit 5b263ae
Showing
27 changed files
with
1,678 additions
and
1,386 deletions.
There are no files selected for viewing
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,29 @@ | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Publish no push | ||
|
||
jobs: | ||
build: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: 'Setup' | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run build | ||
run: pnpm build:ci | ||
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
||
- name: Simulating publish package on NPM 📦 | ||
run: pnpm release:dry |
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,28 @@ | ||
on: | ||
workflow_dispatch: | ||
release: | ||
|
||
name: Publish | ||
|
||
jobs: | ||
build: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: 'Setup' | ||
uses: ./.github/actions/setup | ||
|
||
- name: Run build | ||
run: pnpm build:ci | ||
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
||
- name: Publish package on NPM 📦 | ||
run: pnpm release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "stax", | ||
"name": "roninjin10", | ||
"version": "0.0.0", | ||
"private": true, | ||
"engines": { | ||
|
@@ -15,36 +15,38 @@ | |
"typecheck": "nx run-many --target=typecheck", | ||
"typecheck:ci": "nx run-many --target=typecheck:ci --parallel=3", | ||
"test": "nx run-many --target=test", | ||
"test:ci": "nx run-many --target=test:ci --parallel=3", | ||
"test:ci": "nx run-many --target=test --parallel=3", | ||
"build": "nx run-many --target=build", | ||
"serve": "nx run-many --target=serve", | ||
"serve:docker": "docker-compose up", | ||
"build:ci": "nx run-many --target=build:ci --parallel=3", | ||
"build:ci": "nx run-many --target=build --parallel=3", | ||
"lint": "nx run-many --target=lint", | ||
"lint:ci": "nx run-many --target=lint:ci --parallel=3", | ||
"postinstall": "forge install" | ||
"postinstall": "forge install", | ||
"release": "pnpm publish -r --access=public", | ||
"release:dry": "pnpm publish -r --access=public --dry-run" | ||
}, | ||
"license": "MIT", | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@nrwl/nx-cloud": "^15.0.2", | ||
"dotenv": "^16.0.3", | ||
"nx": "^15.4.2", | ||
"prettier": "^2.8.1", | ||
"nx": "^15.4.5", | ||
"prettier": "^2.8.2", | ||
"prettier-plugin-solidity": "^1.1.1", | ||
"solhint": "^3.3.7", | ||
"solhint-plugin-prettier": "^0.0.5", | ||
"typescript": "^4.9.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.7", | ||
"@babel/core": "^7.20.12", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@types/node": "^18.11.18", | ||
"@typescript-eslint/parser": "^5.47.1", | ||
"@typescript-eslint/parser": "^5.48.0", | ||
"babel": "^6.23.0", | ||
"concurrently": "^7.6.0", | ||
"eslint": "^8.31.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-jsdoc": "^39.6.4", | ||
"eslint-plugin-simple-import-sort": "^8.0.0", | ||
"ts-node": "^10.9.1", | ||
|
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
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,3 @@ | ||
module.exports = { | ||
extends: ["../../.eslintrc.js"], | ||
}; |
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,49 @@ | ||
.env | ||
|
||
cache | ||
forge-artifacts | ||
broadcast | ||
|
||
# compiled output | ||
dist | ||
packages/*/dist | ||
tmp | ||
/out-tsc | ||
**/tsconfig.tsbuildinfo | ||
|
||
# dependencies | ||
node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
**/lcov.info | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# My personal files | ||
.zshrc |
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.12.1 |
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,7 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": false, | ||
"trailingComma": "all", | ||
"arrowParens": "always" | ||
} |
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,22 @@ | ||
(The MIT License) | ||
|
||
Copyright 2020-2022 Optimism | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.