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 448d4b5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 5 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
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
2 changes: 1 addition & 1 deletion apps/penx-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "penx-agent",
"productName": "PenX Agent",
"version": "0.0.3",
"version": "0.1.0",
"description": "Penx",
"main": ".webpack/main",
"scripts": {
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 448d4b5

Please sign in to comment.