generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: reusable setup + read node version from nvmrc
Closes #145 Addresses the following discussions: - #148 (comment) - #148 (comment) Signed-off-by: Lukas Mertens <[email protected]> commit-id:9b48f5ae
- Loading branch information
1 parent
94c95fe
commit 3696c87
Showing
7 changed files
with
64 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest | ||
|
||
name: Setup Node and pnpm | ||
description: "Setups node + pnpm" | ||
|
||
inputs: | ||
pnpm-version: | ||
description: "pnpm version to install" | ||
default: "8" | ||
|
||
outputs: | ||
pnpm-version: | ||
description: "The pnpm version that was installed" | ||
value: ${{ inputs.pnpm-version }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
|
||
- name: Read .nvmrc | ||
id: nvmrc | ||
shell: bash | ||
run: echo version=$(cat .nvmrc) >> "$GITHUB_OUTPUT" | ||
|
||
- name: Setup Node.js ${{ steps.nvmrc.outputs.version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ steps.nvmrc.outputs.version }} | ||
cache: 'pnpm' | ||
cache-dependency-path: | | ||
pnpm-lock.yaml | ||
- name: install dependencies | ||
shell: bash | ||
run: pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters