Skip to content

feat: Bundle dependencies to make CLI work without installing additio… #22

feat: Bundle dependencies to make CLI work without installing additio…

feat: Bundle dependencies to make CLI work without installing additio… #22

Workflow file for this run

name: build-and-publish
on:
push:
branches:
- main
- feature/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js & npm
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
- name: Run Build Script
run: npm run build
- name: Publish if version has been updated
if: ${{ github.ref_name == 'main' }}
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}