Skip to content

v8.18.6

v8.18.6 #488

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: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: yarn install --pure-lockfile
- name: Typecheck
run: yarn typecheck
- name: Lint
run: yarn lint
- name: Run tests
run: yarn test
- name: Check licenses
run: yarn license-check
- name: Pack
run: yarn build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
yarn workspace @swan-io/lake publish
yarn workspace @swan-io/shared-business publish
- name: Create GitHub release
run: yarn tsx scripts/release/createRelease.ts