@@ -24,19 +24,66 @@ jobs:
24
24
steps :
25
25
- uses : actions/checkout@v4
26
26
27
+ - name : Enable corepack
28
+ run : corepack enable
29
+
27
30
- uses : actions/setup-node@v3
28
31
with :
29
- node-version : " latest"
30
- cache : " yarn"
31
- cache-dependency-path : " yarn.lock"
32
+ node-version : latest
33
+ registry-url : https://registry.npmjs.org
34
+ cache : yarn
35
+ cache-dependency-path : yarn.lock
32
36
33
37
- name : Install packages
34
- run : yarn install --frozen-lockfile
38
+ run : yarn install --immutable
39
+
40
+ - name : Run npmluau
41
+ run : yarn run prepare
35
42
36
- - run : yarn publish
43
+ - name : Authenticate yarn
44
+ run : |-
45
+ yarn config set npmAlwaysAuth true
46
+ yarn config set npmAuthToken $NPM_AUTH_TOKEN
37
47
env :
38
48
NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
39
49
50
+ - name : Publish to npm
51
+ run : yarn npm publish --access public
52
+
53
+ publish-wally-package :
54
+ needs : publish-package
55
+
56
+ name : Publish wally package
57
+ runs-on : ubuntu-latest
58
+
59
+ steps :
60
+ - uses : actions/checkout@v4
61
+
62
+ - name : Enable corepack
63
+ run : corepack enable
64
+
65
+ - uses : actions/setup-node@v3
66
+ with :
67
+ node-version : latest
68
+ registry-url : https://registry.npmjs.org
69
+ cache : yarn
70
+ cache-dependency-path : yarn.lock
71
+
72
+ - name : Install packages
73
+ run : yarn install --immutable
74
+
75
+ - name : Run npmluau
76
+ run : yarn run prepare
77
+
78
+ - name : Convert package to wally
79
+ run : yarn dlx npmwally convert --output build/wally
80
+
81
+ - name : Login to wally
82
+ run : wally login --project-path build/wally --token ${{ secrets.WALLY_ACCESS_TOKEN }}
83
+
84
+ - name : Publish to wally
85
+ run : wally publish --project-path build/wally
86
+
40
87
create-release :
41
88
needs : publish-package
42
89
@@ -96,18 +143,25 @@ jobs:
96
143
steps :
97
144
- uses : actions/checkout@v4
98
145
146
+ - name : Enable corepack
147
+ run : corepack enable
148
+
99
149
- uses : Roblox/setup-foreman@v1
100
150
with :
101
151
token : ${{ secrets.GITHUB_TOKEN }}
102
152
103
153
- uses : actions/setup-node@v3
104
154
with :
105
- node-version : " latest"
106
- cache : " yarn"
107
- cache-dependency-path : " yarn.lock"
155
+ node-version : latest
156
+ registry-url : https://registry.npmjs.org
157
+ cache : yarn
158
+ cache-dependency-path : yarn.lock
108
159
109
160
- name : Install packages
110
- run : yarn install --frozen-lockfile
161
+ run : yarn install --immutable
162
+
163
+ - name : Run npmluau
164
+ run : yarn run prepare
111
165
112
166
- name : Build assets
113
167
run : yarn run build
0 commit comments