Skip to content

Commit

Permalink
chore: add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzio committed Jan 24, 2024
1 parent caf5f63 commit a3ccf88
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 && pnpm run publish
4 changes: 0 additions & 4 deletions apps/penx-agent/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: Release
# on:
# release:
# types:
# - created

on:
push:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a3ccf88

Please sign in to comment.