Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: William So <[email protected]>
  • Loading branch information
polyipseity committed Jan 11, 2024
1 parent d4709e5 commit fe14dc8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
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: {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
jobs:
build:
release-latest:
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -21,21 +21,6 @@ jobs:
GH_TOKEN: ${{github.token}}
run: |
gh release upload latest .github/*.tgz --clobber
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:
push:
tags:
Expand Down

0 comments on commit fe14dc8

Please sign in to comment.