Commit graph

127 commits

Author SHA1 Message Date
Jake Runzer
c0cfd5e252
Fix auto-release to checkout master instead of PR ref (#769) 2026-01-19 19:32:51 -05:00
Jake Runzer
ac1c6d14c8
fix: remove duplicate crates.io publish from create-release workflow (#762) 2026-01-13 17:58:25 -05:00
Jake Cooper
52d1500e2d
refactor: Move crates.io publish to release.yml for parallelization (#751)
- auto-release.yml now only handles: debounce, CI wait, version bump, tag push
- release.yml handles all publishing in parallel: crates.io, npm, binaries

This makes auto-release faster (~4 min instead of ~8 min) and allows
publishing to run in parallel with binary builds.

Flow:
  auto-release.yml: PR merge → debounce → bump → push tag
                                                    ↓
  release.yml:      tag push → parallel jobs:
                               ├── build binaries (matrix)
                               ├── publish crates.io
                               └── publish npm (OIDC)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 13:07:14 -08:00
Jake Cooper
33125b9f6c
fix: Run release directly instead of triggering separate workflow (#748)
The RELEASE_TOKEN doesn't have workflow scope to trigger workflow_dispatch
events. Instead, run the release steps directly in the auto-release workflow.

This also simplifies the release process by removing the need for two
separate workflows.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 12:47:40 -08:00
Jake Cooper
1999d5bd1e
fix: Fix auto-release workflow bugs (#746)
- Fix label detection to only check PRs merged since last release tag
  (was checking ALL merged PRs regardless of date)
- Change --field to -f for gh workflow run command
- Add better logging for debugging

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 12:41:49 -08:00
jakecooper
feaa045ceb fix: Use check-runs API instead of status API for CI check
The status API doesn't reflect GitHub Actions check runs properly.
Switch to the check-runs API which accurately reports CI status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 12:19:49 -08:00
Jake Cooper
444add431b
feat: Add auto-release workflow for batched releases (#740)
Adds a workflow that automatically triggers releases when PRs with
release labels are merged. Features:

- Debounces by waiting 2 minutes for more PRs to merge
- Aggregates all PRs since last release to determine bump type
  (major > minor > patch)
- Waits for CI to pass on master before releasing
- Checks for running release workflows to avoid conflicts
- Triggers the existing create-release workflow

This allows multiple PRs to be merged in quick succession and have
them all included in a single release with the appropriate version bump.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:52:35 -08:00
Jake Cooper
4adc473bef
fix: Remove dead json check from scale command (#733)
* fix: Remove dead json check from scale command

The scale command doesn't have a --json flag, so the check
for key == "json" in DynamicArgs::from_arg_matches was dead code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: Update npm to v11.5+ for OIDC trusted publishing

npm OIDC trusted publishing requires npm 11.5+, but Node 22
ships with npm 10.x by default. This adds a step to update
npm before publishing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 10:59:07 -08:00
jakecooper
f21fe1965d chore: Release railwayapp version 4.18.1
Also fixes Create Release workflow:
- Push before publishing to crates.io (fail safely)
- Add concurrency control to prevent race conditions
2026-01-08 10:39:58 -08:00
jakecooper
805952ec42 ci: Pull --rebase before pushing release 2026-01-08 10:37:52 -08:00
Jake Runzer
ad2df4be91
ci: add registry-url for npm OIDC trusted publishers (#732) 2026-01-08 13:32:09 -05:00
Jake Cooper
90e57d8fe0
ci: Use RELEASE_TOKEN for branch protection bypass (#729) 2026-01-08 10:29:24 -08:00
Jake Runzer
30d325e19c
Revert "ci: Fix npm publish auth (#726)" (#730)
This reverts commit 6b5b9ace40.
2026-01-08 13:16:40 -05:00
Jake Cooper
6b5b9ace40
ci: Fix npm publish auth (#726) 2026-01-08 09:35:36 -08:00
Jake Cooper
bf9103941e
ci: Add automated release workflow (#725) 2026-01-08 09:28:59 -08:00
Jake Runzer
e78f6c0ad3
Fix npm OIDC publishing by removing registry-url (#723)
setup-node with registry-url creates an .npmrc expecting NODE_AUTH_TOKEN,
which conflicts with OIDC trusted publisher flow. Removing it lets npm
handle OIDC authentication directly.
2026-01-07 17:31:25 -05:00
Jake Runzer
a6bc173d99
Use OIDC Trusted Publisher for npm publishing (#720)
Replace NPM_TOKEN secret auth with OIDC-based Trusted Publisher.
Adds provenance attestation for supply chain security.
2026-01-07 02:08:25 -05:00
Michael Hadley
538e5a7a5a
Add --lines / -n and -f / --filter options to log command (#667)
* Fix

* WIP

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix

* add test

* add rustfmt which is missing in ci
2025-09-24 16:05:09 -05:00
Daniel
ce63bfda42
format manual docker deployment tag (#594) 2025-02-08 13:23:43 -05:00
Daniel
474565be54
Fix manual docker ci tag (#593)
* fix docker ci workflow

Revert 'only run publish workflow on changes to the master branch';
Add manual job trigger

* get docker tag from user inputs in manual ci runs
2025-02-08 13:04:25 -05:00
Daniel
8d2ec80afc
fix docker ci workflow (#592)
Revert 'only run publish workflow on changes to the master branch';
Add manual job trigger
2025-02-07 23:00:26 -05:00
Milo
8899549d9e
windows arm (#580) 2024-12-16 18:08:03 -05:00
Jake Runzer
20c0365768 checkout code npm 2024-10-21 21:35:07 -04:00
Jake Runzer
58a6d64158 fix typo ubuntu-latest 2024-10-21 21:25:40 -04:00
Jake Runzer
91781128b8
publish to npm as part of release workflow (#568)
* publish to npm as part of release workflow

* delete separate publish-npm workflow file

* update nodejs version
2024-10-21 21:15:38 -04:00
Jake Runzer
6c27e37d62 use wildcard for gh asset upload 2024-10-21 21:02:51 -04:00
Jake Runzer
e7f7c15211 maybe fix shell expansion windows 2024-10-21 20:57:41 -04:00
Jake Runzer
e800e0642b
fix asset releases (#567)
* fix asset releases

* add quotes around version
2024-10-21 20:42:19 -04:00
Jake Runzer
da229de533 upload assets with draft: true 2024-10-21 20:01:17 -04:00
Jake Runzer
574fadf487 fix job name so generating debs work 2024-10-21 19:55:55 -04:00
Jake Runzer
9495333000
create draft release before publishing (#566)
* create draft release before publishing

* remove second publish release

* clean some stuff up
2024-10-21 19:43:48 -04:00
Jake Runzer
137882250f update names of some workflows 2024-10-21 19:01:13 -04:00
Jake Runzer
60547529c3 only run publish workflow on changes to the master branch 2024-10-02 16:26:16 -04:00
Jake Runzer
022b2600ea
notify discord on release (#534)
* notify discord on release

* update copy
2024-08-14 16:24:44 -04:00
Daniel
609af83a35
Update docker publish workflow (#530)
Add check for cli version validity
2024-08-14 02:22:42 -04:00
Milo
2cd77cafcc
Fix release CI and NPM CI (#509) 2024-06-06 20:55:30 +01:00
matt abrams
67136ba4e5
Delete .github/workflows/community.yml 2024-05-21 16:04:23 -10:00
matt abrams
af59d15686
Update community.yml
fix bugs w/ GH Actions and PRs coming from the forks of non-org members
2024-02-27 09:15:08 -10:00
Daniel
1dad2e9f87
Fix i686-pc-windows-gnu target build (#479)
* Update release.yml

* Update release.yml
2024-02-20 06:08:07 -10:00
matt abrams
68db247b67
hide webhook 2024-01-03 10:39:20 -10:00
Alexander Ng
9de89415f0
feat: alpine dockerfile (#470)
* feat: alpine dockerfile

* Create docker-publish.yml

---------

Co-authored-by: Daniel <102395937+maddsua@users.noreply.github.com>
2023-12-05 16:52:45 -05:00
matt abrams
8ad5058204
Create Community-Check GH Action (#467) 2023-11-14 16:42:06 -10:00
Grant Birkinbine
a239ab3db1
Cargo Audit - CI (#338)
* add security audit for cargo

* test

* revert test

* update workflow name

* change repo name to railwayapp

---------

Co-authored-by: Jake Runzer <jakerunzer@gmail.com>
2023-04-24 13:16:41 -04:00
Tomio
7c1cf4fd7a
fix build on i686-pc-windows-gnu (#389)
* fix build on `i686-pc-windows-gnu`

* `use_cross` != `use-cross`
2023-03-24 23:17:20 -04:00
Tomio
63bdd11b57
release binary for i686-pc-windows-gnu (#380) 2023-03-17 15:17:09 -04:00
Tomio
c54950f5be
fix generation of .tar.gz archives on windows (#381)
* fix generation of `.tar.gz` archives on windows

* shorten filename
2023-03-17 15:16:51 -04:00
Gregory Schier
ab2e73ad51 no sign 2023-03-10 17:01:45 -08:00
Gregory Schier
deb18f31f8 Git signing setup 2023-03-10 16:47:30 -08:00
Gregory Schier
6de46a945d Set git info 2023-03-10 16:42:07 -08:00
Gregory Schier
ef4ea9f364 No confirm 2023-03-10 16:38:46 -08:00