Skip to content

Commit

Permalink
Trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 29, 2024
1 parent f50a700 commit e5530f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/publish-cli.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,28 @@ on:
push:
# branches:
# - main
# paths:
# - 'packages/cli/**'

jobs:
publish:
name: Publish
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: 🔍 Run type checking
run: bun run typecheck
# - name: 🚨 Run linting
# run: bun run lint
- name: 🧪 Run unit tests
run: bun run test

publish-cli:
name: Publish CLI
if: contains(github.event.head_commit.modified, 'packages/cli/')
needs: [test]
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -44,3 +60,4 @@ jobs:
run: cd packages/cli && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

22 changes: 0 additions & 22 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit e5530f3

Please sign in to comment.