Skip to content
Merged
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
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:
push:
branches:
- develop
- main

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
gate:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm gate
- name: Publish preview
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/develop'
run: pnpx pkg-pr-new publish ./packages/roller --compact --pnpm
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
release:
types:
- published

permissions:
contents: read
id-token: write

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

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 22
cache: pnpm
registry-url: https://registry.npmjs.org
- run: pnpm install --frozen-lockfile
- run: pnpm gate
- run: pnpm publish --access public --provenance --no-git-checks
working-directory: packages/roller
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ than adding a restore event.
DSH has no UI-less command entry point, so command execution is exercised
end-to-end by dashi while roller's own profile smoke covers installation and
startup.

## Development

Work branches open pull requests against the integration branch, `develop`;
`main` contains releases. Pull requests and pushes to `develop` publish
installable previews through pkg.pr.new once its GitHub App is installed.

To release, update the version and changelog on `develop`, merge it to `main`,
tag the release as `vX.Y.Z`, and publish a matching GitHub release. The release
workflow runs the full gate before publishing to npm with trusted publishing.
6 changes: 5 additions & 1 deletion packages/roller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
},
"repository": {
"type": "git",
"url": "git+https://forgejo.antst.net/ai/roller.git",
"url": "https://github.com/antst/roller",
"directory": "packages/roller"
},
"homepage": "https://github.com/antst/roller#readme",
"bugs": {
"url": "https://github.com/antst/roller/issues"
},
"type": "module",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Loading