generated from polyipseity/obsidian-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow and rename workflow files
Signed-off-by: William So <[email protected]>
- Loading branch information
1 parent
3338aa9
commit bfde8ed
Showing
2 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: npm | ||
node-version: '*' | ||
- run: npm ci | ||
- run: npm run build | ||
build-pnpm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: '*' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: pnpm | ||
node-version: '*' | ||
- run: pnpm install | ||
- run: pnpm build | ||
on: | ||
pull_request_target: | ||
push: | ||
workflow_dispatch: | ||
permissions: {} |