Skip to content

Bump CLI to 0.1.24 and fix license identifier (#88) #23

Bump CLI to 0.1.24 and fix license identifier (#88)

Bump CLI to 0.1.24 and fix license identifier (#88) #23

Workflow file for this run

name: npm-publish
on:
push:
tags: ["v*.*.*"]
workflow_dispatch:
permissions:
contents: write
id-token: write
pull-requests: write
concurrency:
group: npm-publish-${{ github.ref }}
cancel-in-progress: false
jobs:
publish:
name: publish @openagentlock/cli
runs-on: ubuntu-latest
outputs:
version: ${{ steps.ver.outputs.version }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- uses: oven-sh/setup-bun@v2
with: { bun-version: "1.3" }
- name: Install
working-directory: cli
run: bun install --frozen-lockfile
- name: Typecheck
working-directory: cli
run: bun run typecheck
- name: Test
working-directory: cli
run: bun test
- id: ver
name: Resolve version
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Publish
working-directory: cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance --access public