diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..5ff073ae --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release +# on: +# release: +# types: +# - created + +on: + push: + tags: + - 'v*' + +jobs: + build: + strategy: + matrix: + os: + [ + { name: 'linux', image: 'ubuntu-latest' }, + { name: 'windows', image: 'windows-latest' }, + { name: 'macos', image: 'macos-latest' }, + ] + runs-on: ${{ matrix.os.image }} + steps: + - name: Github checkout + uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - run: pnpm install + - name: Publish app + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: cd apps/penx-agent && npm run publish \ No newline at end of file diff --git a/package.json b/package.json index 368345b4..446186f9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "penx", + "version": "0.1.0", "private": true, "scripts": { "dev": "turbo run dev --filter=@penx/db && turbo run dev --filter=web",