Skip to content

Commit

Permalink
add setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Nov 17, 2023
1 parent de8ec51 commit 3e09bcd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tooling/gh-actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Setup and install"
description: "Common setup steps for Actions"

runs:
using: composite
steps:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- shell: bash
run: pnpm install

- name: Copy .env.example files
shell: bash
run:
find ./examples -type f -name ".env.example" -exec sh -c 'cp "$1"
"${1%.example}"' _ {} \;

0 comments on commit 3e09bcd

Please sign in to comment.