Skip to content

v11.3.3

v11.3.3 #576

Workflow file for this run

name: Release
on:
pull_request:
branches: [main]
types: [closed]
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-v') }}
env:
GH_TOKEN: ${{ github.token }}
REF_BRANCH: ${{ github.event.pull_request.head.ref }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Run tests
run: pnpm test
- name: Check licenses
run: pnpm license-check
- name: Pack
run: pnpm build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
pnpm publish -r
- name: Create GitHub release
run: pnpm tsx scripts/release/createRelease.ts