chore(deps): update dependency @types/node to v24.19.0 #273
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: Package CI | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: package-ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| package: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: "24" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Validate committed distribution | |
| run: | | |
| npm run validate:artifact | |
| node --test test/release-config.test.js | |
| - name: Validate, build, typecheck, and test | |
| run: npm run check | |
| - name: Lint the package | |
| run: npx --yes publint@0.3.24 | |
| - name: Pack and smoke-test the executable | |
| shell: bash | |
| run: | | |
| package_root=$(mktemp -d) | |
| install_root=$(mktemp -d) | |
| npm pack --pack-destination "$package_root" | |
| package_files=("$package_root"/*.tgz) | |
| test -f "${package_files[0]}" | |
| test "${#package_files[@]}" -eq 1 | |
| npm install --global --prefix "$install_root" "${package_files[0]}" | |
| # npm global bins are prefix/bin on Unix and prefix/ itself on Windows. | |
| bin_dir="$install_root/bin" | |
| if [ ! -e "$bin_dir/gbot" ]; then | |
| bin_dir="$install_root" | |
| fi | |
| "$bin_dir/gbot" --help | |
| "$bin_dir/grok-bot" --help | |
| "$bin_dir/gbot-install" --help |