andywer / andywer/ideabox

npm publish service

Ouverte
#20 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Aucune donnée de langage
Étoiles
1
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## Key features
- A script is always run in project‘s CI
- Runs `npm pack` and submits the tarball to the service on every commit
- Runs `prepublish`/`prepublishOnly` npm scripts that would normally not be triggered by `npm pack` (optionally)
- Create new release in service
- Suggests new version no
- Service creates git tag, extracts tarball, bumps version, publishes to npm

## Nice to have
- Integrates with PR status: Need to select if change is major, minor or patch
- Reads PR statuses: Only allows publishing commits with a successful build status
- Monorepo support (updating package deps inside the monorepo might get tricky)
- Use GitHub‘s [Deployment API](https://developer.github.com/v3/repos/deployments/) to annotate which commits have been an npm release
- Auto-release on PR merge, optionally request confirmation by email or [Web Push Notifications](https://developers.google.com/web/fundamentals/push-notifications/)
- Ideally cover all the features of
- Propose a release draft: All changes based on merged PRs, grouped by "feature" | "bug fix" | "chore" based on the labels of the issue the PR closed

## Known limitations
- Cannot update the package's version in the `package.json`/`package-lock.json`

## Notes
- You can `cd /tmp && npm pack /path/to/package`
- Use [tar package](https://www.npmjs.com/package/tar) to update tarball
- Store brief summary of `package.json` in DB for each tarball: `name`, `dependencies`, `devDependencies` (dependencies for monorepo support)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.