Skip to content

Add workflow and missing dependencies #10

Add workflow and missing dependencies

Add workflow and missing dependencies #10

Workflow file for this run

name: CICD
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
build:
name: CICD
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Install modules
run: |
pnpm install
- name: Check format and lint
run: |
pnpm run format:check
pnpm run lint
# TODO: tests
- name: Build project
run: pnpm run build
# TODO: preview release for branches, manual tagged releases
- name: Publish to npmjs
run: pnpm publish --access public --no-git-checks --tag development
env:
NODE_AUTH_TOKEN: ${{ secrets.BITTE_AI_NPM_TOKEN }}