Skip to content

Commit

Permalink
gh: use builtin cahce
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed May 22, 2024
1 parent 8f448a3 commit 74a6d60
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
13 changes: 7 additions & 6 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ description: Common setup steps used by our workflows
runs:
using: composite
steps:
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org

- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
with:
version: 9
run_install: false

- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org
cache: pnpm
22 changes: 11 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:
- name: Setup workflow
uses: ./.github/actions/setup

- name: Get pnpm store directory
id: pnpm-store
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
# - name: Get pnpm store directory
# id: pnpm-store
# shell: bash
# run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT

- name: Setup pnpm cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# - name: Setup pnpm cache
# uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
# with:
# path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-

- name: Install and build package
run: |
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/sdk",
"version": "0.0.30",
"version": "0.0.31",
"description": "The v1 Hop Protocol TypeScript SDK",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down

0 comments on commit 74a6d60

Please sign in to comment.