Skip to content

Commit

Permalink
ci(cli): create cli workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bambanah committed Oct 4, 2024
1 parent ed90315 commit be606cc
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 35 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-ladybugs-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deemix-cli": patch
---

Initial version
45 changes: 45 additions & 0 deletions .github/workflows/build-release-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Publish CLI

on:
push:
tags:
- deemix-cli@*
pull_request:
branches:
- main
paths:
- cli/CHANGELOG.md
- .github/workflows/build-release-cli.yml

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
HUSKY: 0
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
build-release-cli:
runs-on: macos-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- run: pnpm compile:cli

- name: Upload Artifacts
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
cli/out/deemix-cli-*
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"test": "turbo run test",
"package": "turbo run package",
"make": "turbo run make",
"compile:cli": "turbo run compile --filter=deemix-cli...",
"ci": "turbo run lint type-check build test",
"clean": "rimraf .turbo node_modules --glob **/dist **/out **/node_modules **/.turbo **/tsconfig.tsbuildinfo",
"prepare": "husky"
Expand All @@ -22,23 +23,23 @@
"@changesets/cli": "^2.27.7",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^9.11.1",
"@total-typescript/tsconfig": "^1.0.4",
"@types/node": "^20.16.3",
"@typescript-eslint/parser": "~8.8.0",
"esbuild": "^0.23.1",
"eslint": "~9.11.1",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.9.0",
"husky": "^9.1.5",
"npm-run-all2": "^6.2.0",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.6.6",
"rimraf": "^6.0.1",
"tsx": "^4.19.0",
"turbo": "^2.1.1",
"turbo": "^2.1.3",
"typescript": "~5.5.0",
"@eslint/js": "^9.11.1",
"@typescript-eslint/parser": "~8.8.0",
"typescript-eslint": "8.3.0",
"eslint-config-prettier": "^9.1.0",
"eslint": "~9.11.1"
"typescript-eslint": "8.3.0"
},
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
}
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"make": {
"dependsOn": ["build", "^build"],
"outputs": ["dist/**", "out/**"]
},
"compile": {
"dependsOn": ["build", "^build"],
"outputs": ["dist/**", "out/**"]
}
}
}

0 comments on commit be606cc

Please sign in to comment.