Skip to content

refactor: replace CI failure email notification with GitHub issue cre… #30

refactor: replace CI failure email notification with GitHub issue cre…

refactor: replace CI failure email notification with GitHub issue cre… #30

Workflow file for this run

name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependency
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun install --frozen-lockfile
- name: Run lint and typecheck
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun run lint
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependency
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun install --frozen-lockfile
- name: Run unit tests with coverage
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun run test:coverage
- name: Upload coverage artifact
uses: actions/upload-artifact@v7
with:
name: coverage
path: coverage
if-no-files-found: error
publish-dry-run:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependency
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun install --frozen-lockfile
- name: Prepare dry run publish version
env:
PUBLISH_DRY_RUN: 'true'
PUBLISH_VERSION: 0.0.0-dry-run.${{ github.run_id }}.${{ github.run_attempt }}
run: bun scripts/prepublish.ts
- name: Dry run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm publish --dry-run --access public --tag dry-run