Skip to content

chore: Bump package version to 1.0.1. #7

chore: Bump package version to 1.0.1.

chore: Bump package version to 1.0.1. #7

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
tags:
- 'v*'
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: bun install
- name: Build TypeScript
run: bun run build
- name: Run tests
run: bun run test
- name: Check CLI works
run: |
chmod +x ./bin/cli.js
node ./bin/cli.js --version
node ./bin/cli.js --help
publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: bun install
- name: Build TypeScript
run: bun run build
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}