Skip to content

chore: remove unused inquirer dependency #232

chore: remove unused inquirer dependency

chore: remove unused inquirer dependency #232

Workflow file for this run

name: Build and publish library
on: push
permissions:
actions: read
contents: write
packages: write
id-token: write
env:
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
jobs:
build:
if: "!contains(github.event.head_commit.message, 'docs:')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.2.1
- run: bun install --frozen-lockfile
- run: bun run tsc
- run: bun run lint
- run: bun run build-cli
- run: bun run copy-html
- run: bun run sanity-check
- run: cp bunfig.toml ./tsm-cli/bunfig.toml
- run: bun publish
if: github.ref == 'refs/heads/main'
working-directory: ./tsm-cli
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
increment-version:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- name: Setup github connection for auth
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: jq --arg version "1.0.$(date +%F-%H%M)" '.version = $version' package.json > updated.json && mv updated.json package.json
working-directory: ./tsm-cli
- run: git add . && git commit -m "[skip ci] bump version to $(jq -r .version tsm-cli/package.json)" && git push