Skip to content

Commit

Permalink
chore: 🤖 test
Browse files Browse the repository at this point in the history
  • Loading branch information
meetqy committed Aug 2, 2023
1 parent 2276aa7 commit e4fa63c
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,46 @@ jobs:
build_on_mac:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
# - uses: actions/checkout@v3
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18.x

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# - uses: pnpm/action-setup@v2
# name: Install pnpm
# id: pnpm-install
# with:
# version: 7
# run_install: false
# - name: Get pnpm store directory
# id: pnpm-cache
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
# - uses: actions/cache@v3
# name: Setup pnpm cache
# 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 dependencies
# run: pnpm install --no-frozen-lockfile

# - name: Build
# run: pnpm build

- name: Release
run: |
cd apps/electron
ls ./
# - name: Release
# run: |
# cd apps/electron
# ls ./
# pnpm release:mac
# env:
# USE_HARD_LINKS: false

- name: Upload releases
uses: svenstaro/upload-release-action@v2
- name: Upload release
uses: actions/upload-artifact@v3
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./package.json
tag: ${{ github.ref }}
path: ./apps/electron/types/*

0 comments on commit e4fa63c

Please sign in to comment.