Skip to content

build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.62.1 to 8.65.0 in /decx-cli #87

build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.62.1 to 8.65.0 in /decx-cli

build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.62.1 to 8.65.0 in /decx-cli #87

Workflow file for this run

name: Build Decx CLI
on:
push:
branches: [ main ]
paths:
- 'decx-cli/**'
- 'version'
- 'VERSION'
pull_request:
branches: [ main ]
paths:
- 'decx-cli/**'
- 'version'
- 'VERSION'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: decx-cli
steps:
- uses: actions/checkout@v7
- name: Prepare version file
working-directory: .
run: |
if [ ! -f version ] && [ -f VERSION ]; then
cp VERSION version
fi
test -s version
- uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: decx-cli/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Verify dist
run: |
ls -la dist/
node -e "const pkg = require('./dist/package.json'); console.log('name:', pkg.name, 'version:', pkg.version, 'bin:', JSON.stringify(pkg.bin))"
- uses: actions/upload-artifact@v7
with:
name: cli-dist
path: decx-cli/dist/
publish-npm:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: read
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
name: cli-dist
path: decx-cli/dist/
- uses: actions/setup-node@v7
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Publish to npm
run: npm publish --access public --provenance
working-directory: decx-cli/dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}