Skip to content

ci: create main workflow (#3) #5

ci: create main workflow (#3)

ci: create main workflow (#3) #5

Workflow file for this run

name: CI build
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: DerYeger/pnpm-setup-action@master
with:
node-version: latest
- name: Build
run: pnpm build-only
# Separate build and type check,
# because *.d.ts files aren't generated before build
- name: Type Check
run: pnpm type-check
- name: Compress action step
uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ./
files: |
./dist
outPath: dist.tar.gz
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: |
./dist.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist.tar.gz