fix(ci): make setup test host-independent #24
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: Stage npm release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| stage: | |
| if: github.repository == 'misunders2d/agentnet' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out tagged source | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Configure Node.js | |
| uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 | |
| with: | |
| node-version: "24.18.0" | |
| registry-url: "https://registry.npmjs.org" | |
| package-manager-cache: false | |
| - name: Install pinned npm CLI | |
| run: | | |
| npm install --global npm@12.0.1 --ignore-scripts | |
| test "$(npm --version)" = "12.0.1" | |
| - name: Configure uv and Python | |
| uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| with: | |
| version: "0.11.28" | |
| python-version: "3.13.13" | |
| enable-cache: false | |
| - name: Verify tag matches package version | |
| run: | | |
| PACKAGE_VERSION="$(node -p "require('./package.json').version")" | |
| test "$GITHUB_REF_NAME" = "v$PACKAGE_VERSION" | |
| - name: Install locked dependencies | |
| run: npm ci --ignore-scripts | |
| # AgentNet's prepublishOnly script runs package checks, the test suite, | |
| # and release-manifest verification before npm accepts the staged package. | |
| - name: Stage package | |
| run: npm stage publish --access public |