From 448d4b503ab6f8efa38be23736c442932423cbe1 Mon Sep 17 00:00:00 2001 From: 0xzion <0xzion.penx@gmail.com> Date: Wed, 24 Jan 2024 13:17:00 +0800 Subject: [PATCH] chore: add release.yml --- .github/workflows/release.yml | 45 +++++++++++++++++++ apps/penx-agent/.github/workflows/release.yml | 4 -- apps/penx-agent/package.json | 2 +- package.json | 1 + 4 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..a062598d4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,45 @@ +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 + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 8.7.6 + # - run: pnpm install + - name: Publish app + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: cd apps/penx-agent && npm install && npm run publish + run: | + cd apps/penx-agent + npm install + npm run publish \ No newline at end of file diff --git a/apps/penx-agent/.github/workflows/release.yml b/apps/penx-agent/.github/workflows/release.yml index 3bc0c1cf0..5178e3201 100644 --- a/apps/penx-agent/.github/workflows/release.yml +++ b/apps/penx-agent/.github/workflows/release.yml @@ -1,8 +1,4 @@ name: Release -# on: -# release: -# types: -# - created on: push: diff --git a/apps/penx-agent/package.json b/apps/penx-agent/package.json index 7cfc07c06..52be44526 100644 --- a/apps/penx-agent/package.json +++ b/apps/penx-agent/package.json @@ -1,7 +1,7 @@ { "name": "penx-agent", "productName": "PenX Agent", - "version": "0.0.3", + "version": "0.1.0", "description": "Penx", "main": ".webpack/main", "scripts": { diff --git a/package.json b/package.json index 368345b46..446186f9b 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",