We call it "Continuous Releases" too.
With pkg.pr.new, each of your commits and pull requests would trigger an instant release. This enables users to access features and bug-fixes without the need to wait for release cycles using npm or pull request merges.
- ๐ Instant Builds
- ๐ ๏ธ Github Workflows Friendly
- ๐ฆ๏ธ No Configuration
- ๐ฉ Single Command
- โ๏ธ Pull Request Comments
- ๐ฅ Check Runs
pkg.pr.new is aiming to reduce the number of these comments :)
This was fixed in #18. Can we release that fix?
Will ask the maintainer to release ;)
The Github Application is available here.
After installing on your repository, you can run npx pkg-pr-new pulibsh
with GITHUB_TOKEN
in your workflows and then you have continuous releases!
npm install --save-dev pkg-pr-new
![](https://private-user-images.githubusercontent.com/37929992/320173137-1ec45036-ebfb-4f6d-812b-1b8fdade2c62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MDI5MDksIm5iZiI6MTcyNDUwMjYwOSwicGF0aCI6Ii8zNzkyOTk5Mi8zMjAxNzMxMzctMWVjNDUwMzYtZWJmYi00ZjZkLTgxMmItMWI4ZmRhZGUyYzYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDEyMzAwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJiOTZkZWNmN2ZiY2RlY2Q4NmYxNjgwOWJhYWNkNTQ5YTI4MjQzZmI0ZjhiOTgxODdhNzUzMWU2MmZlNzU4Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kVnfGPCjnhJhujcZ8g9_Y5bLaBH8bEYDmze2PblukKs)
- Release each commit and pull request:
name: Publish Any Commit
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- run: pnpm pkg-pr-new publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN is provided automatically in any repository
- Release approved pull requests only:
name: Publish Approved Pull Requests
on:
pull_request_review:
types: [submitted]
jobs:
approved:
if: github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- run: pnpm pkg-pr-new publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Releasing approved pull requests is the recommended way of having continuous releases. This ensures users always install approved and safe packages.
Publishing is only available in workflows and it supports any workflow trigger event, more information here.