-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
27 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 |
---|---|---|
@@ -1,36 +1,27 @@ | ||
name: 'Set up Workspace' | ||
name: Set up Workspace | ||
description: 'Checks out repository, installs correct version of node and npm dependencies.' | ||
# inputs: | ||
# who-to-greet: # id of input | ||
# description: 'Who to greet' | ||
# required: true | ||
# default: 'World' | ||
# outputs: | ||
# random-number: | ||
# description: "Random number" | ||
# value: ${{ steps.random-number-generator.outputs.random-id }} | ||
runs: | ||
using: "composite" | ||
using: composite | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: | | ||
- recursive: true | ||
- args: [--global, gulp, prettier, typescript] | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
version: 9 | ||
run_install: false | ||
|
||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install | ||
run: pnpm install --frozen-lockfile --strict-peer-dependencies | ||
|
||
- name: Install Global Packages | ||
shell: bash | ||
run: pnpm add -g gulp prettier typescript |