Skip to content

Commit

Permalink
chore: better workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Nov 25, 2024
1 parent c8154b7 commit fb0fc91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Lint
permissions:
pull-requests: write
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
name: Type Check
permissions:
pull-requests: write
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
name: Build Test
permissions:
pull-requests: write
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ export default defineBuildConfig({
inlineDependencies: true,
},
hooks: {
'build:done': async () => {
'build:before': async () => {
await toErrorable(async () => await rm(join(cwd(), 'main.js')))
await toErrorable(async () => await rm(join(cwd(), 'manifest.json')))
},
'build:done': async () => {
await generateObsidianPluginManifest()
await copyFile(join(cwd(), 'dist', 'main.js'), join(cwd(), 'main.js'))
await copyFile(join(cwd(), 'dist', 'manifest.json'), join(cwd(), 'manifest.json'))
Expand Down

0 comments on commit fb0fc91

Please sign in to comment.