Merge branch 'develop' #3
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 npm publish | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
cli: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./cli | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nodegit deps | |
run: sudo apt-get update && sudo apt-get install -y libpcre libpcreposix libkrb5 libk5crypto libcom_err | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
- run: npm run build | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |