Skip to content

Commit 58b142e

Browse files
build: move from aftman to rokit
1 parent 774c89b commit 58b142e

7 files changed

+45
-26
lines changed

.github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ jobs:
3636
- name: Install dependencies
3737
run: pnpm install
3838

39-
- name: Setup Aftman
40-
uses: ok-nick/setup-aftman@e226f24209f47677da7b215bab44f6351a2c043b # v0.4.2
41-
with:
42-
token: ${{ secrets.GITHUB_TOKEN }}
39+
- name: Setup Rokit
40+
run:
41+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | sh
4342

4443
- name: Lint
4544
run: |

.github/workflows/release-development.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
- name: Install roblox-ts
4242
run: pnpm add roblox-ts
4343

44-
- name: Setup Aftman
45-
uses: ok-nick/setup-aftman@e226f24209f47677da7b215bab44f6351a2c043b # v0.4.2
46-
with:
47-
token: ${{ secrets.GITHUB_TOKEN }}
44+
- name: Setup Rokit
45+
run:
46+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | sh
4847

4948
- name: Compile
5049
run: pnpm build-dev --verbose
@@ -68,10 +67,9 @@ jobs:
6867
- name: Install GH CLI
6968
uses: dev-hanz-ops/install-gh-cli-action@8fff9050dae2d81b38f94500d8b74ad1d1d47410 # v0.2.0
7069

71-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
72-
- uses: ok-nick/setup-aftman@e226f24209f47677da7b215bab44f6351a2c043b # v0.4.2
73-
with:
74-
token: ${{ secrets.GITHUB_TOKEN }}
70+
- name: Setup Rokit
71+
run:
72+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | sh
7573

7674
- name: Download place artifact
7775
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4

.github/workflows/release.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ jobs:
4141
- name: Install roblox-ts
4242
run: pnpm add roblox-ts
4343

44-
- name: Setup Aftman
45-
uses: ok-nick/setup-aftman@e226f24209f47677da7b215bab44f6351a2c043b # v0.4.2
46-
with:
47-
token: ${{ secrets.GITHUB_TOKEN }}
44+
- name: Setup Rokit
45+
run:
46+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | sh
4847

4948
- name: Compile
5049
run: pnpm build-prod --verbose
@@ -68,10 +67,9 @@ jobs:
6867
- name: Install GH CLI
6968
uses: dev-hanz-ops/install-gh-cli-action@8fff9050dae2d81b38f94500d8b74ad1d1d47410 # v0.2.0
7069

71-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
72-
- uses: ok-nick/setup-aftman@e226f24209f47677da7b215bab44f6351a2c043b # v0.4.2
73-
with:
74-
token: ${{ secrets.GITHUB_TOKEN }}
70+
- name: Setup Rokit
71+
run:
72+
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | sh
7573

7674
- name: Download place artifact
7775
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4

aftman.toml

-5
This file was deleted.

renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"extends": [
44
"config:recommended",
55
":pinAllExceptPeerDependencies",
6-
"github>sasial-dev/aftman-renovate-config",
6+
"github>christopher-buss/rokit-renovate-config",
77
"helpers:pinGitHubActionDigests",
88
"npm:unpublishSafe"
99
],

rokit-renovate-config.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
],
5+
"customManagers": [
6+
{
7+
"customType": "regex",
8+
"fileMatch": ["^rokit.toml$"],
9+
"matchStrings": [".+ = { name = \"(?<depName>.+)\", version = \"(?<currentValue>.+)\" }", ".+ = \"(?<depName>.+)@(?<currentValue>.+)\""],
10+
"datasourceTemplate": "github-releases"
11+
}
12+
],
13+
"packageRules": [
14+
{
15+
"matchPaths": ["rokit.toml"],
16+
"extractVersion": "^v?(?<version>.*)$"
17+
}
18+
]
19+
}

rokit.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file lists tools managed by Rokit, a toolchain manager for Roblox projects.
2+
# For more information, see https://github.com/rojo-rbx/rokit
3+
4+
# New tools can be added by running `rokit add <tool>` in a terminal.
5+
6+
[tools]
7+
asphalt = "jacktabscode/asphalt@0.8.0"
8+
darklua = "seaofvoices/darklua@0.13.1"
9+
mantle = "blake-mealey/mantle@0.11.16"
10+
rojo = "rojo-rbx/rojo@7.4.1"

0 commit comments

Comments
 (0)