Skip to content

Commit de4adfe

Browse files
authored
fix: fix up build 🐔 (#56)
1 parent 01113a3 commit de4adfe

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ on:
77
- main
88

99
jobs:
10-
publish:
10+
build-and-publish:
1111
runs-on: ubuntu-latest
12-
13-
if: github.ref == 'refs/heads/main'
1412

1513
steps:
1614
- name: Checkout

scripts/build-devtools.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ rmSync(DIST_PATH, { recursive: true, force: true });
1515
// Ensure dist directory exists
1616
mkdirSync(DIST_PATH, { recursive: true });
1717

18+
// Build plugin
19+
console.log('Building plugin...');
20+
execSync('pnpm build', {
21+
cwd: PLUGIN_PATH,
22+
stdio: 'inherit',
23+
});
24+
1825
// Build devtools ui
1926
console.log('Building devtools...');
2027
execSync('pnpm build', {
@@ -31,13 +38,6 @@ cpSync(join(UI_PATH, 'lib-types'), join(DIST_PATH, 'ui', 'lib-types'), {
3138
recursive: true,
3239
});
3340

34-
// Build plugin
35-
console.log('Building plugin...');
36-
execSync('pnpm build', {
37-
cwd: PLUGIN_PATH,
38-
stdio: 'inherit',
39-
});
40-
4141
console.log('Copying plugin files to dist...');
4242
cpSync(join(PLUGIN_PATH, 'dist'), join(DIST_PATH, 'plugin'), {
4343
recursive: true,

0 commit comments

Comments
 (0)