Releases: JohnnyMorganz/stylua-action
Releases · JohnnyMorganz/stylua-action
v4.1.0
What's Changed
- Added the ability to configure the action to install, but not run, stylua by @ColinKennedy in #58. This can be useful when the
stylua
is used as part of separate CI scripts.
This can be configured by setting args: false
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes
# This disables running `stylua`
args: false
# Run stylua independently
- run: |
stylua --version
New Contributors
- @ColinKennedy made their first contribution in #58
Full Changelog: v4...v4.1.0
v4.0.0
v3.0.0
Breaking Changes
- The breaking change to
version
in v2.0.0 did not actually propagate to the extension code. This has been fixed.
As a reminder, version is now a required input. To get v1 behaviour, supplyversion: latest
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
# CLI arguments
args: --check .
Changes
version
now properly supports semver version specifiers such as^0.17.1
and ranges>=0.15.0 <0.17.0
(thanks, @rcloran!)
v2.0.0
Breaking Changes
- Upgrade to use Node v16
version
is now a required input. To get v1 behaviour, supplyversion: latest
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
# CLI arguments
args: --check .
NOTE: using latest
may cause the action to fail if StyLua updates and the formatting changes!
Changes
- No longer provide a warning when no version is provided / version is "latest"
v1.1.2
Fixed
- Fixed legacy artifact names no longer working when pinned to version <= 0.14.3
v1.1.1
Fixed
- Fixed incorrect artifact chosen due to the introduction of linux-aarch64 artifacts, causing ELF not found errors
Full Changelog: v1.1.0...v1.1.1
v1.1.0
- Support downloading artifacts with 'windows' in the name
- Allow specifying version as 'latest' explicitly (which is currently the default)
- Warn when version is not explicitly specified. This may soon become a hard error
Full Changelog: 1.0.0...v1.1.0
v1.0.0
Initial release