Skip to content

Commit

Permalink
Merge pull request #28 from withastro/fix/bun
Browse files Browse the repository at this point in the history
Do not pass Bun to cache for `setup-node`
  • Loading branch information
natemoo-re committed Sep 26, 2023
2 parents 0e82d51 + aef6114 commit f122c02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,17 @@ runs:

- name: Setup Node
uses: actions/setup-node@v3
if: ${{ env.PACKAGE_MANAGER != 'bun' }}
with:
node-version: ${{ inputs.node-version }}
cache: ${{ env.PACKAGE_MANAGER }}
cache-dependency-path: "${{ inputs.path }}/${{ env.LOCKFILE }}"

- name: Setup Node (Bun)
uses: actions/setup-node@v3
if: ${{ env.PACKAGE_MANAGER == 'bun' }}
with:
node-version: ${{ inputs.node-version }}

- name: Install
shell: "bash"
Expand Down

0 comments on commit f122c02

Please sign in to comment.