Skip to content

Commit

Permalink
refactor: support node and pnpm versions (#6)
Browse files Browse the repository at this point in the history
* refactor: support node and pnpm versions

* refactor: update action.yml
  • Loading branch information
gao-sun authored May 9, 2024
1 parent f3fffba commit 35a3482
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ inputs:
default: logto-${{ github.sha }}
branch:
description: The branch to checkout
node-version:
type: string
default: ^20.9
pnpm-version:
type: string
default: 8

runs:
using: composite
Expand All @@ -18,6 +24,9 @@ runs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
node-version: ${{ inputs['node-version'] }}
pnpm-version: ${{ inputs['pnpm-version'] }}

- name: Build and package
shell: bash
Expand Down

0 comments on commit 35a3482

Please sign in to comment.