Skip to content

Commit

Permalink
chore: fix build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
yinrouni committed Jan 12, 2024
1 parent a733be8 commit 5625caf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "Build"

on:
push:
tags:
- '*'
tags:
- '*'

jobs:
build-and-release:
Expand All @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -35,15 +35,13 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install deps
run: pnpm bootstrap

Expand All @@ -54,11 +52,11 @@ jobs:
id: create_tar
shell: bash
run: |
tar -cvf ./packages/dag/${{ github.ref }}.tar ./packages/dag/dist
tar -cvf ./apps/platform/${{ github.ref_name }}.tar ./apps/platform/dist
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
generate_release_notes: true
files: ./packages/dag/${{ github.ref }}.tar
files: ./apps/platform/${{ github.ref_name }}.tar

0 comments on commit 5625caf

Please sign in to comment.