mapbox / mapbox/gha-public

`npm run build` should be gated by an option and off by default

Open Beginner friendly
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently `npm run build` is [run unconditionally](https://github.com/mapbox/gha-public/blob/main/.github/workflows/workflow-npm-oidc-publish.yml#L87-L89), which is redundant for most packages — those that were previously published manually typically have a `prepublishOnly` hook that does all the necessary building on `npm publish`.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in .github/workflows/workflow-npm-oidc-publish.yml at lines 87–89, where npm run build currently runs unconditionally. Trace the workflow’s existing options and publish steps, then verify that building is off by default, can be enabled through an option, and does not disrupt npm publish for packages using prepublishOnly.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js
Domain
ci-cd, release
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.