Skip to content

Commit

Permalink
Merge branch 'main' into optional-variance
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed May 19, 2022
2 parents 96f0b45 + c673e15 commit b630664
Show file tree
Hide file tree
Showing 54 changed files with 4,610 additions and 492 deletions.
22 changes: 22 additions & 0 deletions .github/actions/prepare-build/action.yml
@@ -0,0 +1,22 @@
name: "Prepare: Build"
description: "Prepares the repo for a job by running the build"
# inputs: - no inputs
# outputs: - no outputs

runs:
using: "composite"
steps:
- uses: actions/cache@v3
id: build-cache
with:
path: "**/dist/**"
key: ${{ runner.os }}-build-${{ github.ref }}
restore-keys: |
${{ runner.os }}-build-
# if the cache was hit - this will run in <1s
- name: Build
shell: bash
# Website will be built by the Netlify GitHub App
run: |
yarn build --exclude website
44 changes: 44 additions & 0 deletions .github/actions/prepare-install/action.yml
@@ -0,0 +1,44 @@
name: "Prepare: Checkout and Install"
description: "Prepares the repo for a job by checking out and installing dependencies"
inputs:
node-version:
description: "The node version to setup"
required: true
registry-url:
description: "Define registry-url"
required: false

# outputs: - no outputs

runs:
using: "composite"
steps:
- name: echo github.ref
shell: bash
run: echo ${{ github.ref }}

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

- name: Get yarn cache directory path
shell: bash
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# if the cache was hit - this will run in <1s
- name: Install dependencies
shell: bash
run: |
yarn --ignore-engines --frozen-lockfile --ignore-scripts
yarn check-clean-workspace-after-install

0 comments on commit b630664

Please sign in to comment.