Pull requests are welcomed and encouraged. If you find a bug or need an enhancement, first check for any open issues. If nothing matches, open an issue. Solicit some feedback about your planned PR. Maybe we can help with some guidance or context. If you decide to move ahead with development work, let us know with an issue comment
Please consider the following PR guidelines:
- Provide a clear description of what the PR is trying to solve. Link to any existing issues.
- Aim for clear, readable code.
- Use conventional commit messages. There is tool in place that won't allow commit that don't adhere to this format. For convenience, you can add commits with
npm run commit. - Add unit tests and ensure any new code has 100% test coverage. You can do this by running
npm run test:covand then looking for your file in the/coverage/index.htmloutput. - Run
npm run lint:fixand ensure you're not commiting lint - If your new code requires a release, please run
npm run changeset:addand commit the generated changeset file as a part of your PR.
Pushing a changeset to master starts four jobs in .github/workflows/release.yml:
setupinstalls and archives dependencies, versions packages, updates changelogs and coverage, and pushes the release commit.release-npmpublishes from that exact commit, skips versions already on npm, and pushes missing version tags after publishing succeeds.release-githubuses the same commit and its tags to create GitHub releases, skipping releases that already exist.cleanupupdates the rootpackage-lock.jsonon the latestmasterand commits it only when it changes.
For transient publishing or cleanup failures, use Re-run failed jobs in the existing
workflow run. Successful prerequisites, including setup, do not need to run again.
Avoid Re-run all jobs, since versioning is not repeatable. npm authentication is scoped
to the publishing job using actions/setup-node; no repository .npmrc is committed.
The release jobs restore setup's dependency artifact, preserving workspace links without
installing against the stale root lockfile. Retries require that artifact to remain available.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.