Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO committed Nov 14, 2023
1 parent 04f56b7 commit b3d9328
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/publish-template-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,23 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- 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-
- name: Install Dependencies
run: pnpm install
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/test-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- 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-
- run: pnpm install
- run: pnpm build

0 comments on commit b3d9328

Please sign in to comment.