Skip to content

Commit

Permalink
chore: add PR package previews, bump some actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Dec 12, 2024
1 parent ed86180 commit 3fda30d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
envFile: .env.github

- uses: oven-sh/setup-bun@v1
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
envFile: .env.github

- uses: oven-sh/setup-bun@v1
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

Expand Down Expand Up @@ -103,3 +103,19 @@ jobs:
package_manager: bun
no_wait: false
checkout_ref: refs/pull/${{ github.event.number }}/merge

package-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cardinalby/export-env-action@v2
with:
envFile: .env.github

- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

- run: bun install --frozen-lockfile

- run: npx pkg-pr-new publish
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ jobs:
with:
envFile: .env.github

- uses: oven-sh/setup-bun@v1
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

- name: Install example deps
run: cd example && bun install && cd ..
run: bun install --frozen-lockfile
working-directory: example

- name: Install example-expo deps
run: cd example-expo && bun install && cd ..
run: bun install --frozen-lockfile
working-directory: example-expo

- name: Install deps
run: bun install --frozen-lockfile
Expand All @@ -57,7 +59,7 @@ jobs:
with:
envFile: .env.github

- uses: oven-sh/setup-bun@v1
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

Expand Down Expand Up @@ -88,7 +90,7 @@ jobs:
with:
envFile: .env.github

- uses: oven-sh/setup-bun@v1
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}

Expand Down

0 comments on commit 3fda30d

Please sign in to comment.