roact icon indicating copy to clipboard operation
roact copied to clipboard

Wally publish could be automated with GitHub Actions

Open Corecii opened this issue 3 years ago • 2 comments

The most recent release of Roact is version 1.4.4, but the most recent version on Wally is 1.4.2. There have been a few requests to get Roact updated in the wally index since these releases include fixes to Luau typings.

Links:

Additionally, it looks like wally.toml is out of sync with the index: the most recent version published to the index is 1.4.2, but the version in wally.toml is older at 1.4.0. Was the version bump for wally.toml not committed?

This can be resolved by:

  1. Upping the version in wally.toml to 1.4.4
  2. Running wally publish using Wally after authenticating Wally with GitHub

Corecii avatar Jul 15 '22 18:07 Corecii

If publishing to Wally is not a habit, or if most engineers that publish releases do not have Wally on their computers, consider publishing using a GitHub action whenever you make a normal release!

Details

You may want to automatically up the wally.toml version to the release tag's version if updating wally.toml isn't a habit.

To get wally, you can add it to foreman.toml:

wally = { source = "UpliftGames/wally", version = "0.3.1" }

To log in, you can generate an auth.toml on your local PC then store it in a GitHub secret. The action can then copy the file to the write place so that Wally is authenticated:

      - name: Log in to wally
        env:
          WALLY_AUTH: ${{ secrets.WALLY_AUTH }}
        run: |
          mkdir ~/.wally
          printenv WALLY_AUTH > ~/.wally/auth.toml
      - name: Push update to wally
        run: wally publish

Corecii avatar Jul 15 '22 18:07 Corecii

I realize now after speaking with others that Uplift has been handling updating these packages on Wally. I was initially confused because I figured Roblox was doing the publishing since there's a wally.toml in the official repo.

I'll leave this issue around to document how this can be confusing and how GitHub Actions can make this automatic. I think the ideal result here is that GitHub Actions handles all of the Wally stuff for you, so that you're the publisher of these packages and you don't have to think about it or do extra work on release.

Corecii avatar Jul 15 '22 19:07 Corecii