Skip to content

chore!: build package as ESM-only (#70) #148

chore!: build package as ESM-only (#70)

chore!: build package as ESM-only (#70) #148

name: Test & Release
on:
push:
branches:
- "main"
jobs:
release:
name: Test & Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 2
- name: Set up repo
uses: ./.github/actions/setup
- name: Check
run: pnpm run check
- name: Typecheck
run: pnpm run typecheck
- name: Test
run: pnpm run test
- name: Validate current commit (last commit) with commitlint
run: pnpm run commitlint -- --from HEAD~1 --to HEAD --verbose
- name: Release
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}