forked from metaplex-foundation/metaplex-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
40 lines (34 loc) · 978 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Yarn Install and Build
inputs:
cache_id:
description: ID to use in order to cache yarn install
required: true
working_dir:
description: Directory in which to perform the yarn tasks
required: true
description: Installs Yarn Packages and Builds
runs:
using: composite
steps:
- uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ inputs.cache_id }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
if: ${{ env.CACHE == 'true' }}
##############
# Build Contract
##############
- name: Install Root Modules
run: |
echo 'Install Root Modules: yarn install'
yarn install
working-directory: ./
shell: bash
- name: Install modules
run: yarn install
working-directory: ${{ inputs.working_dir }}
shell: bash
- name: Build TypeScript
run: yarn build
working-directory: ${{ inputs.working_dir }}
shell: bash