andywer / andywer/ideabox

npm publish service

Đang mở
#20 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.