Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,18 @@ jobs:
with:
ref: ${{ needs.candidate-preflight.outputs.release_sha }}

- name: Load reviewed npm recovery publisher
if: github.event_name == 'workflow_dispatch'
shell: bash
run: |
git fetch --no-tags origin \
+refs/heads/main:refs/remotes/origin/main
git show refs/remotes/origin/main:scripts/publish_npm_artifacts.py \
> "$RUNNER_TEMP/publish_npm_artifacts.py"
install -m 0755 \
"$RUNNER_TEMP/publish_npm_artifacts.py" \
scripts/publish_npm_artifacts.py

- uses: actions/setup-node@v6
with:
node-version: "20"
Expand Down
3 changes: 2 additions & 1 deletion scripts/ci/test-publish-cli-contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def main() -> None:
assert "needs: [candidate-preflight, publish-pypi]" in npm_job
assert "pnpm --filter @curatelabs/graphforge-cli test:offline" in npm_job
assert "node scripts/ci/verify-node-cli-release-package.mjs" in npm_job
assert npm_job.count("scripts/publish_npm_artifacts.py") == 3
assert npm_job.count("python3 scripts/publish_npm_artifacts.py") == 3
assert "Load reviewed npm recovery publisher" in npm_job
assert npm_job.index("--group native") < npm_job.index("verify-node-cli-release-package.mjs")
assert npm_job.index("verify-node-cli-release-package.mjs") < npm_job.index("--group cli")
assert npm_job.index("--group cli") < npm_job.index("--group skills")
Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/test-release-publish-preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def load_module():
npm_job = workflow.split(" publish-npm:\n", 1)[1].split("\n publish-crates:", 1)[0]
assert "needs: [candidate-preflight, publish-pypi]" in npm_job
assert "scripts/publish_npm_artifacts.py" in npm_job
assert "Load reviewed npm recovery publisher" in npm_job
assert "refs/remotes/origin/main:scripts/publish_npm_artifacts.py" in npm_job
assert "--group native" in npm_job
assert "--group cli" in npm_job
assert "--group skills" in npm_job
Expand Down
Loading