Bump to node 24 in release for NPM OIDC Trusted publishing #147
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: Build Extension & CLI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| jobs: | |
| extension: | |
| name: Build Extension | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install Dependencies | |
| run: | | |
| npm install | |
| npm install -g vsce | |
| cd cli | |
| npm install | |
| - name: Build Extension | |
| run: | | |
| vsce package | |
| - name: Upload VSIX | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vscode-ibmi-testing-pr-build | |
| path: ./*.vsix | |
| if-no-files-found: error | |
| cli: | |
| name: Build CLI | |
| runs-on: ubuntu-latest | |
| environment: COMMON1 | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install CLI Dependencies | |
| working-directory: cli | |
| run: | | |
| npm run install:api | |
| npm install | |
| - name: Build CLI | |
| working-directory: cli | |
| run: | | |
| npm run webpack | |
| npm publish --dry-run | |
| - name: Install CLI Tools | |
| run: | | |
| npm i -g @ibm/ibmi-ci | |
| - name: Build Sample Project | |
| working-directory: examples/ibmi-company_system | |
| run: | | |
| ici \ | |
| --cmd "mkdir -p './builds/itest_${GITHUB_HEAD_REF}'" \ | |
| --rcwd "./builds/itest_${GITHUB_HEAD_REF}" \ | |
| --push "." \ | |
| --ignore --cl "CRTLIB ITESTPR" \ | |
| --ignore --cl "CLRLIB ITESTPR" \ | |
| --cmd "/QOpenSys/pkgs/bin/gmake BIN_LIB=ITESTPR" | |
| env: | |
| IBMI_HOST: ${{ secrets.IBMI_HOST }} | |
| IBMI_USER: ${{ secrets.IBMI_USER }} | |
| IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }} | |
| IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }} | |
| - name: Test CLI | |
| working-directory: cli | |
| run: | | |
| chmod +x ./dist/index.js | |
| ./dist/index.js \ | |
| --ld ../examples/ibmi-company_system \ | |
| --id /home/SANJULA/builds/ibmi-company_system \ | |
| --ll ITESTPR RPGUNIT QDEVTOOLS \ | |
| --cl ITESTPR \ | |
| --cc --sr --tr --to --co | |
| env: | |
| IBMI_HOST: ${{ secrets.IBMI_HOST }} | |
| IBMI_USER: ${{ secrets.IBMI_USER }} | |
| IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }} | |
| IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }} |