Skip to content

ver: bump

ver: bump #57

Workflow file for this run

name: Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fail if tag already exists
run: |
set -euo pipefail
VERSION=$(jq -r '.version' package.json)
TAG="v${VERSION}"
if git rev-parse -q --verify "refs/tags/${TAG}" >/dev/null; then
echo "::error::Tag already exists: ${TAG}"
exit 1
fi
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install
run: bun install --frozen-lockfile
- name: Test
run: bun test