Skip to content

Commit

Permalink
fix(actions): publish commits via pkg-pr-new (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario authored Oct 15, 2024
1 parent f17c1b7 commit d3bb505
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/publish-commits.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Publish Any Commit

on:
push:
Expand All @@ -7,11 +7,8 @@ on:
branches: [canary]

jobs:
bun-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
Expand All @@ -26,27 +23,5 @@ jobs:
run: bun install
- name: Build project
run: bun run build && bun run create-brisa:build
- name: Run Bun tests
run: bun test

node-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Setup Bun.js
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.30
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build && bun run create-brisa:build
- name: Run Node.js tests
run: bun run test:node
- name: Publish commits
run: bunx pkg-pr-new publish './packages/*'

0 comments on commit d3bb505

Please sign in to comment.