audit + lock bump #10
Workflow file for this run
This file contains hidden or 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: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'lai-*' | |
| - 'tools-*' | |
| workflow_dispatch: | |
| inputs: | |
| package: | |
| description: 'Package to publish' | |
| required: true | |
| type: choice | |
| options: | |
| - lai | |
| - tools | |
| permissions: | |
| id-token: write # for OIDC | |
| contents: read | |
| jobs: | |
| ci: | |
| uses: ./.github/workflows/ci.yml | |
| publish: | |
| needs: ci | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| registry-url: 'https://registry.npmjs.org' | |
| package-manager-cache: false # don't cache in release builds | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build packages | |
| run: npm run build | |
| # publish the relevant version (will be staged later on) | |
| # cli | |
| - name: Stage Publish CLI | |
| if: startsWith(github.ref_name, 'lai-') || inputs.package == 'lai' | |
| run: npm publish -w packages/cli | |
| # or tools | |
| - name: Stage Publish Tools | |
| if: startsWith(github.ref_name, 'tools-') || inputs.package == 'tools' | |
| run: npm publish -w packages/langium-ai-tools |