Merge pull request #4 from ydennisy/chore/simplify-db-schema #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[CLI] Publish to NPM" | |
on: | |
push: | |
branches: [main] | |
paths: | |
- cli/** | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: cli | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org | |
- name: Install CLI | |
run: npm ci | |
- name: Build CLI | |
run: npm run build | |
- name: Publish to NPM | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |