Skip to content

docs: gaze init --ci Node workflow stages coverage under RUNNER_TEMP (upload-artifact hidden-path fix) #495

Backlog

Description

@jflowers

The gaze init --ci scaffold output for Node projects changed in unbound-force/gaze#446: the scaffolded Node CI workflow now stages its coverage upload under $RUNNER_TEMP instead of a hidden directory inside the workspace. This issue tracks the website-side updates so the documentation mirrors match the fixed scaffold. Without them, the mirrors describe a staging layout that fails at the upload step.

What changed

The scaffolded Node CI workflow's staging and upload steps moved from the hidden .gaze-artifact workspace directory to $RUNNER_TEMP/gaze-artifact:

- name: Stage coverage for upload
  run: mkdir -p "$RUNNER_TEMP/gaze-artifact" && cp -r coverage "$RUNNER_TEMP/gaze-artifact/"

The upload step's path is now ${{ runner.temp }}/gaze-artifact. The artifact name (coverage-out), the coverage/ prefix inside the artifact, if-no-files-found: error, and the actions/upload-artifact pin are unchanged.

Full fix: unbound-force/gaze#446.

Why it matters

actions/upload-artifact v4.4.0+ excludes dot-prefixed paths by default, so the old hidden .gaze-artifact staging directory in the workspace uploaded nothing — scaffolded Node workflows failed at the upload step. Staging under $RUNNER_TEMP keeps the transient staging root outside the workspace and outside any hidden path, so the upload finds its files.

Consumers scaffolded on the broken v2.7.0 staging should regenerate the workflow:

gaze init --ci --force

or hand-apply the staging change to their existing workflow.

Pages needing updates

  • The website mirror of the CI integration guide — its Node bullet should name the $RUNNER_TEMP staging root: coverage staged under $RUNNER_TEMP (outside the workspace, outside hidden paths), preserving the coverage/ prefix in the artifact.
  • The website mirror of the gaze init CLI reference — its Node bullet should say staged coverage/ upload under $RUNNER_TEMP, not just "staged".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions