Skip to content

Commit

Permalink
Upgrade prepare action
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten committed Jul 10, 2023
1 parent 36751a9 commit 79be40d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: Prepare
description: Install and build the app

inputs:
registry:
description: NPM registry to set up for auth
required: false

runs:
using: 'composite'
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: ${{ inputs.registry }}

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
Expand All @@ -36,3 +38,10 @@ runs:
- name: Install dependencies
shell: bash
run: pnpm install

- name: Build
shell: bash
run: pnpm run build
env:
npm_config_workspace_concurrency: '1'
NODE_OPTIONS: --max_old_space_size=6144

0 comments on commit 79be40d

Please sign in to comment.