Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/standalone-release-assets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@pull-up/cli': minor
---

Release pull-up 0.1.0 with YAML-only configuration and external custom commands for both npm and standalone executables. Remove the public JavaScript configuration API. JavaScript/TypeScript configs, `.pulluprc` configs, and the `package.json` `pullup` field are ignored.

Publish Linux and macOS executables for x64 and arm64 through GitHub Releases, and support `pullup --help` and `pullup --version`.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,26 @@ jobs:
- run: yarn format:check
- run: yarn test
- run: yarn typecheck

exe:
name: Test binary (${{ matrix.target }})
runs-on: ${{ matrix.runner }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- target: linux-x64
runner: ubuntu-24.04
- target: linux-arm64
runner: ubuntu-24.04-arm
- target: darwin-x64
runner: macos-15-intel
- target: darwin-arm64
runner: macos-15
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: jdx/mise-action@v3
- run: yarn install --immutable
- run: yarn test:exe
141 changes: 126 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,87 @@ on:
branches: [main]
workflow_dispatch:

concurrency:
group: release-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: false

jobs:
prepare:
name: Prepare release version
if: github.repository == 'toss/pull-up'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: jdx/mise-action@v3
- if: github.event_name == 'workflow_dispatch'
run: yarn install --immutable
- name: Create canary version
if: github.event_name == 'workflow_dispatch'
run: |
yarn changeset version --snapshot canary --snapshot-prerelease-template "{tag}.${GITHUB_RUN_ID}.${GITHUB_RUN_ATTEMPT}"
version=$(node -p "require('./package.json').version")
case "$version" in
*"-canary.${GITHUB_RUN_ID}.${GITHUB_RUN_ATTEMPT}") ;;
*) echo "::error::No canary version was calculated. Add a changeset before publishing."; exit 1 ;;
esac
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Read release version
id: version
run: |
version=$(node -p "require('./package.json').version")
printf 'version=%s\n' "$version" >> "$GITHUB_OUTPUT"

binaries:
name: Build and package binary (${{ matrix.target }})
needs: prepare
runs-on: ${{ matrix.runner }}
permissions:
contents: read
env:
RELEASE_VERSION: ${{ needs.prepare.outputs.version }}
RELEASE_TARGET: ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
include:
- target: linux-x64
runner: ubuntu-24.04
- target: linux-arm64
runner: ubuntu-24.04-arm
- target: darwin-x64
runner: macos-15-intel
- target: darwin-arm64
runner: macos-15
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: jdx/mise-action@v3
- name: Set release version
run: npm pkg set version="$RELEASE_VERSION"
- run: yarn install --immutable
- run: yarn test:exe
- name: Package standalone executable
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7
with:
version: v2.18.2
args: release --snapshot --clean
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
path: build/release/pullup-v${{ needs.prepare.outputs.version }}-${{ matrix.target }}.tar.gz
archive: false
if-no-files-found: error
overwrite: true

build:
if: github.repository == 'toss/pull-up' && github.event_name == 'push'
needs: binaries
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -28,43 +106,76 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: Download tested archives
if: steps.changesets.outputs.published == 'true'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
pattern: pullup-v${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}-*.tar.gz
path: release-assets
merge-multiple: true
- name: Upload archives to GitHub Release
if: steps.changesets.outputs.published == 'true'
uses: softprops/action-gh-release@5113cdc90fd4d541c801c55356214017bf5ae34b # v3
with:
tag_name: v${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}
files: release-assets/pullup-v${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}-*.tar.gz
fail_on_unmatched_files: true

canary:
name: Publish canary
if: github.repository == 'toss/pull-up' && github.event_name == 'workflow_dispatch'
needs: [prepare, binaries]
runs-on: ubuntu-latest
concurrency:
group: publish-canary
cancel-in-progress: false
permissions:
id-token: write
contents: read
contents: write
pull-requests: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: jdx/mise-action@v3
- name: Set canary version
run: npm pkg set version="$RELEASE_VERSION"
env:
RELEASE_VERSION: ${{ needs.prepare.outputs.version }}
- run: yarn install --immutable
- run: yarn lint
- run: yarn format:check
- run: yarn test
- run: yarn typecheck
- name: Create canary version
run: |
yarn changeset version --snapshot canary --snapshot-prerelease-template "{tag}.${GITHUB_RUN_ID}.${GITHUB_RUN_ATTEMPT}"
version=$(node -p "require('./package.json').version")
case "$version" in
*"-canary.${GITHUB_RUN_ID}.${GITHUB_RUN_ATTEMPT}") ;;
*) echo "::error::No canary version was calculated. Add a changeset before publishing."; exit 1 ;;
esac
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish canary to npm
run: npm publish --tag canary --access public
run: yarn changeset publish --tag canary --no-git-tag
env:
NPM_CONFIG_PROVENANCE: true
- name: Show install command
- name: Download tested archives
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
pattern: pullup-v${{ needs.prepare.outputs.version }}-*.tar.gz
path: release-assets
merge-multiple: true
- name: Upload standalone canary
uses: softprops/action-gh-release@5113cdc90fd4d541c801c55356214017bf5ae34b # v3
with:
tag_name: v${{ needs.prepare.outputs.version }}
target_commitish: ${{ github.sha }}
draft: true
prerelease: true
make_latest: false
overwrite_files: false
files: release-assets/pullup-v${{ needs.prepare.outputs.version }}-*.tar.gz
fail_on_unmatched_files: true
- name: Publish standalone canary
run: gh release edit "$RELEASE_TAG" --draft=false --prerelease --latest=false
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: v${{ needs.prepare.outputs.version }}
- name: Show canary downloads
run: |
version=$(node -p "require('./package.json').version")
printf 'Run this canary:\n\n npx @pull-up/cli@%s --help\n' "$version" >> "$GITHUB_STEP_SUMMARY"
printf 'Run this canary:\n\n npx @pull-up/cli@%s --help\n\nStandalone binaries: %s\n' "$RELEASE_VERSION" "$RELEASE_URL" >> "$GITHUB_STEP_SUMMARY"
env:
RELEASE_VERSION: ${{ needs.prepare.outputs.version }}
RELEASE_URL: ${{ github.server_url }}/${{ github.repository }}/releases/tag/v${{ needs.prepare.outputs.version }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

.pnp.*
dist
build
release-assets

*.tgz

Expand Down
27 changes: 27 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
project_name: pullup
dist: build/release

builds:
- builder: node
skip: true

archives:
- meta: true
formats: [tar.gz]
name_template: 'pullup-v{{ .Env.RELEASE_VERSION }}-{{ .Env.RELEASE_TARGET }}'
files:
- src: 'build/pullup-{{ .Env.RELEASE_TARGET }}'
dst: pullup
info:
mode: 0755
- LICENSE

snapshot:
version_template: '{{ .Env.RELEASE_VERSION }}'

checksum:
disable: true

changelog:
disable: true
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Viva Republica, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading