Skip to content

Commit

Permalink
feat: refine github action (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlight-lee authored Aug 13, 2024
1 parent 98edb25 commit 2bde38d
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 18 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ jobs:
with:
version: 9



# Connect your workspace on nx.app and uncomment this to enable task distribution.
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
# - run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"


# Cache node_modules
- uses: actions/setup-node@v3
with:
Expand All @@ -44,11 +37,5 @@ jobs:
# The correct way should run command "pnpm build". However, I don't know why
# "nx runmany" can't gurantee build order in github CI. So I have to run each
# project one by one.
- run: pnpm exec nx run @mlightcad/common:build
- run: pnpm exec nx run @mlightcad/geometry-engine:build
- run: pnpm exec nx run @mlightcad/graphic-interface:build
- run: pnpm exec nx run @mlightcad/svg-renderer:build
- run: pnpm exec nx run @mlightcad/data-model:build
- run: pnpm exec nx run @mlightcad/three-viewcube:build
- run: pnpm exec nx run @mlightcad/viewer:build
- run: pnpm test
- run: pnpm exec nx run @mlightcad/three-viewcube-demo:build
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright © 2010-2024 mlightcad authors

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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mlightcad",
"version": "0.0.1",
"license": "UNLICENSED",
"license": "MIT",
"author": "MLight Lee <[email protected]>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/three-viewcube-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mlightcad/three-viewcube-demo",
"private": true,
"version": "0.0.1",
"license": "MIT",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
21 changes: 21 additions & 0 deletions packages/three-viewcube/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright © 2010-2024 mlightcad authors

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.
7 changes: 5 additions & 2 deletions packages/three-viewcube/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@mlightcad/three-viewcube",
"private": true,
"version": "0.0.1",
"license": "MIT",
"type": "module",
"files": [
"dist",
"lib"
"lib",
"LICENSE",
"package.json",
"src"
],
"main": "./dist/viewcube.umd.cjs",
"module": "./dist/viewcube.js",
Expand Down

0 comments on commit 2bde38d

Please sign in to comment.