Merge pull request #59 from IPGeolocation/fix/glama-score-metadata #23
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@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 | |
| 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@bcc565454580b378121fef0f5086d2979f07ddbd | |
| 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" |