Skip to content

Commit fb0fc91

Browse files
committed
chore: better workflow
1 parent c8154b7 commit fb0fc91

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Lint
1717
permissions:
1818
pull-requests: write
19-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
@@ -54,7 +54,7 @@ jobs:
5454
name: Type Check
5555
permissions:
5656
pull-requests: write
57-
runs-on: ubuntu-22.04
57+
runs-on: ubuntu-latest
5858
steps:
5959
- name: Checkout
6060
uses: actions/checkout@v4
@@ -92,7 +92,7 @@ jobs:
9292
name: Build Test
9393
permissions:
9494
pull-requests: write
95-
runs-on: ubuntu-22.04
95+
runs-on: ubuntu-latest
9696
steps:
9797
- name: Checkout
9898
uses: actions/checkout@v4

build.config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ export default defineBuildConfig({
5050
inlineDependencies: true,
5151
},
5252
hooks: {
53-
'build:done': async () => {
53+
'build:before': async () => {
5454
await toErrorable(async () => await rm(join(cwd(), 'main.js')))
5555
await toErrorable(async () => await rm(join(cwd(), 'manifest.json')))
56+
},
57+
'build:done': async () => {
5658
await generateObsidianPluginManifest()
5759
await copyFile(join(cwd(), 'dist', 'main.js'), join(cwd(), 'main.js'))
5860
await copyFile(join(cwd(), 'dist', 'manifest.json'), join(cwd(), 'manifest.json'))

0 commit comments

Comments
 (0)