Skip to content

Commit

Permalink
Revert remove setup action (viamrobotics#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous authored Dec 19, 2023
1 parent 347d7b1 commit cc53499
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Set up Node.js'
description: 'Install Node.js and development dependencies'

inputs:
node-version:
description: 'Node.js version to install'
default: '18'

registry-url:
description: Registry to configure for publish

install-dependencies:
description: 'Run `pnpm install`'
default: 'true'

runs:
using: 'composite'
steps:
- name: 'Install pnpm ${{ inputs.pnpm-version }}'
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd # v2.2.4

- name: 'Install Node.js ${{ inputs.node-version }}'
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: ${{ inputs.node-version }}
registry-url: ${{ inputs.registry-url }}
cache: pnpm

- name: 'Install dependencies'
if: ${{ inputs.install-dependencies == 'true' }}
shell: bash
run: pnpm install --frozen-lockfile

0 comments on commit cc53499

Please sign in to comment.