Skip to content

feat(API): Create CLI (#7) #6

feat(API): Create CLI (#7)

feat(API): Create CLI (#7) #6

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Release
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Build dist
run: npm build
- name: Build CLI
run: npm run build:cli
- name: Release to NPM
run: npx semantic-release