Update GitHub Actions to Node 24-compatible pins #34
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: mpak Validate | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Install root dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Audit root dependencies | |
| run: npm audit --audit-level=moderate | |
| - name: Build root distribution | |
| run: npm run build | |
| - name: Prepare isolated mpak package | |
| run: node scripts/prepare-mpak-package.mjs | |
| - name: Validate mpak bundle build | |
| id: build_bundle | |
| uses: NimbleBrainInc/mcpb-pack@e74c82722fa4b954ce7740f875d6c437ae471df6 | |
| with: | |
| directory: artifacts/mpak-package | |
| upload: false | |
| announce: false | |
| platform-os: any | |
| platform-arch: any | |
| - name: Finalize mpak bundle metadata | |
| run: >- | |
| node scripts/finalize-mpak-bundle.mjs | |
| "artifacts/mpak-package/${{ steps.build_bundle.outputs.bundle-path }}" | |
| "artifacts/mpak-package" |