Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #64 from cultureamp/heartsquared/fix-canary
Browse files Browse the repository at this point in the history
ci: add setup action for canary
  • Loading branch information
HeartSquared authored Nov 2, 2023
2 parents c559788 + c13b2b0 commit eb24e09
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# this is composite workflow that gets the repo ready for actions
# for docs how composite workflows work see https://wallis.dev/blog/composite-github-actions

name: Setup repository
description: Sets this repository up to allow efficient run of various github actions

runs:
using: composite
steps:
# setup node
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: "yarn"
registry-url: https://npm.pkg.github.com/

# yarn install with use of cache
# this is bit duplicate to cache: "yarn" above, but from testing the best performance is when both are used.
- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ./node_modules
key: kaizen-${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('./yarn.lock') }}
- name: yarn install
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm config set "//npm.pkg.github.com/:_authToken" "$GITHUB_TOKEN"
yarn install --frozen-lockfile
# setup turborepo cache
- uses: dtinth/setup-github-actions-caching-for-turbo@v1

0 comments on commit eb24e09

Please sign in to comment.