Skip to content

Migrate ubuntu-latest Actions runners to ubuntu-slimΒ #221

@okineadev

Description

@okineadev

I propose migrating to ubuntu-slim runners in all .github/workflows/*.yml workflows, it will be more environmentally friendly and cheaper, at least it will be cheaper for GitHub, because public projects don't have to pay for the used Actions minutes, it will also reduce carbon emissions πŸƒ

What workflows can be migrated?

Short answer - any that last less than 15 minutes, not compute-heavy tasks

  • Auto-labelling issues
  • Building and publishing packages
  • Linting and formatting
  • ...

I think this is ideal for TS projects, because there are no heavy tasks, and the build is just bundling and minifying the code.

How to migrate to ubuntu-slim runners?

Automatically

Use gh-slimify, it will intelligently check if workflows are suitable for migration and report problems if there are any.

Manually

Just replace ubuntu-latest with ubuntu-slim in all .github/workflows/*.yml

Next steps (optional, but recommended)

I highly recommend you to read the best practices for GitHub workflows which will significantly reduce the use of unnecessary Actions runs - https://github.com/Cambridge-ICCS/green-ci?tab=readme-ov-file#best-practices


GitHub blog post about new 1 vCPU runners: https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview

Pricing (tl;dr: $0.002/min): https://docs.github.com/en/billing/reference/actions-runner-pricing

GitHub-hosted runners reference: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#standard-github-hosted-runners-for--private-repositories


I'm new here and not sure if this is the right issue because it's not directly related to the TS ecosystem, let me know if something is wrong or I've made a mistake and we can do better πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions