Skip to content

Commit cbd6d84

Browse files
committed
chore(ci): combine lint and ci workflows
1 parent 9da0b95 commit cbd6d84

File tree

2 files changed

+14
-41
lines changed

2 files changed

+14
-41
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,19 @@ on:
88

99
# Automatically cancel in-progress actions on the same branch
1010
concurrency:
11-
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
12-
cancel-in-progress: true
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1313

1414
jobs:
15-
build:
16-
name: Build Packages
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
- uses: pnpm/action-setup@v4
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: "pnpm"
25-
- run: pnpm install
26-
- run: pnpm run build
27-
- run: pnpm run types
28-
- run: pnpm run test
15+
ci:
16+
if: github.repository_owner == 'bombshell-dev'
17+
uses: bombshell-dev/automation/.github/workflows/run.yml@main
18+
secrets: inherit
19+
with:
20+
commands: >
21+
[
22+
"build",
23+
"types",
24+
"test",
25+
"deps"
26+
]

.github/workflows/lint.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)