Files
nomad/.github/actions/setup-js/action.yml
Daniel Bennett 1d6fddd11f build: ui: setup-node v4.4.0 (#26826)
for actions/cache upgrade, specifically to account for
https://github.com/actions/toolkit/discussions/1890
2025-09-22 15:35:09 -04:00

27 lines
751 B
YAML

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
name: setup-js
description: install node and pnpm, and run pnpm install
runs:
using: composite
steps:
# install pnpm itself, but do not install deps yet
- name: Install PNPM
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
with:
run_install: false
# install appropriate node version, and point cache at pnpm
- name: Setup node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: package.json
cache: pnpm
# now that cache is properly configured, pnpm install the deps
- name: PNPM install
run: pnpm install
shell: bash