Skip to content

Commit

Permalink
simplify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Nov 14, 2023
1 parent b3d9328 commit 89e653e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 34 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/publish-template-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
timeout-minutes: 5
continue-on-error: true
with:
path: |
${{ env.STORE_PATH }}
~/go/pkg/mod
~/go/bin
~/.cache
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: "pnpm"
cache-dependency-path: ./template-sdk/pnpm-lock.json

- name: Install Dependencies
run: pnpm install
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/test-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
cache: "pnpm"
cache-dependency-path: ./template-default/pnpm-lock.json

- uses: actions/cache@v3
name: Setup pnpm cache
timeout-minutes: 5
continue-on-error: true
with:
path: |
${{ env.STORE_PATH }}
~/go/pkg/mod
~/go/bin
~/.cache
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm build

0 comments on commit 89e653e

Please sign in to comment.