From 35a3482a437bbbc2d14041315fc38b116354d373 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 9 May 2024 15:14:01 +0800 Subject: [PATCH] refactor: support node and pnpm versions (#6) * refactor: support node and pnpm versions * refactor: update action.yml --- action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yml b/action.yml index 1d4a63a..62f6e21 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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