Skip to content

Commit a85c3c6

Browse files
authored
Skip activation docs (#452)
* Add skip activation documentation * Switch lefthook package
1 parent 190c068 commit a85c3c6

File tree

3 files changed

+66
-8
lines changed

3 files changed

+66
-8
lines changed

docs/03-github/04-builder.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,15 @@ version numbering for custom built and maintained registries.
515515

516516
_**required:** `false`_ _**default:** `"3"`_
517517

518+
#### skipActivation
519+
520+
Skips the activation step. This is useful for Mac self-hosted runners as the Unity process runs on
521+
the host so activation/deactivation can conflict with parallel running jobs. This should only be
522+
used for Mac self-hosted runners that already have a license activated. Running in any other
523+
configuration will result in a failed build due to inactive licenses.
524+
525+
_**required:** `false`_ _**default:** `false`_
526+
518527
## Outputs
519528

520529
Below are outputs that can be accessed by using `${{ steps.myBuildStep.outputs.outputName }}`, where

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"node": ">= 16.x"
1010
},
1111
"scripts": {
12-
"prepare": "lefthook install && npx husky uninstall -y",
12+
"prepare": "lefthook install",
1313
"docusaurus": "docusaurus",
1414
"dev": "yarn start",
1515
"start": "docusaurus start",
@@ -34,9 +34,9 @@
3434
"@docusaurus/module-type-aliases": "^2.4.1",
3535
"@docusaurus/preset-classic": "^2.4.1",
3636
"@docusaurus/theme-common": "^2.4.1",
37+
"@docusaurus/tsconfig": "^3.0.0-alpha.0",
3738
"@mdx-js/react": "^1.6.22",
3839
"@reduxjs/toolkit": "^1.8.1",
39-
"@docusaurus/tsconfig": "^3.0.0-alpha.0",
4040
"antd": "^4.20.2",
4141
"autoprefixer": "^10.4.12",
4242
"classnames": "^2.3.2",
@@ -65,7 +65,6 @@
6565
"typescript": "^4.6.4"
6666
},
6767
"devDependencies": {
68-
"@arkweid/lefthook": "^0.7.7",
6968
"@testing-library/react": "^13.2.0",
7069
"@types/jest": "^27.5.1",
7170
"@typescript-eslint/eslint-plugin": "^6.4.0",
@@ -86,6 +85,7 @@
8685
"eslint-plugin-unicorn": "^27.0.0",
8786
"jest": "^28.1.0",
8887
"jest-environment-jsdom": "^28.1.0",
88+
"lefthook": "^1.6.1",
8989
"prettier": "^2.6.2",
9090
"tsc-files": "^1.1.3"
9191
},

yarn.lock

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,6 @@
191191
resize-observer-polyfill "^1.5.1"
192192
throttle-debounce "^5.0.0"
193193

194-
"@arkweid/lefthook@^0.7.7":
195-
version "0.7.7"
196-
resolved "https://registry.yarnpkg.com/@arkweid/lefthook/-/lefthook-0.7.7.tgz#12951b09b955d8054885ffe929aa07a49f39027c"
197-
integrity sha512-Eq30OXKmjxIAIsTtbX2fcF3SNZIXS8yry1u8yty7PQFYRctx04rVlhOJCEB2UmfTh8T2vrOMC9IHHUvvo5zbaQ==
198-
199194
200195
version "7.12.11"
201196
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f"
@@ -8082,6 +8077,60 @@ launch-editor@^2.6.0:
80828077
picocolors "^1.0.0"
80838078
shell-quote "^1.7.3"
80848079

8080+
8081+
version "1.6.1"
8082+
resolved "https://registry.yarnpkg.com/lefthook-darwin-arm64/-/lefthook-darwin-arm64-1.6.1.tgz#387d245d39673ceede01da7de2a0d44d2c368e85"
8083+
integrity sha512-q6+sYr2Dpt6YnBGXRjMFcXZUnVB97nH+s7EP/tX8m9ewvQxLPqIiUPyAumfyJ2Siomkc5WgAinG+kT63VjUN3A==
8084+
8085+
8086+
version "1.6.1"
8087+
resolved "https://registry.yarnpkg.com/lefthook-darwin-x64/-/lefthook-darwin-x64-1.6.1.tgz#a677f7262d29317964c96f13509c06d3bf54e93f"
8088+
integrity sha512-utm7FwtbW8SxGMALIw5/iG4loYS2FI0crDKp/YIamrZgQr6M4pS2C3rxGj5OwiHFIm3arVU+3VZywdvRLJAw0w==
8089+
8090+
8091+
version "1.6.1"
8092+
resolved "https://registry.yarnpkg.com/lefthook-freebsd-arm64/-/lefthook-freebsd-arm64-1.6.1.tgz#3d527cfa40da0b57b2b81e853f7c11bd13fc618c"
8093+
integrity sha512-F2BoDnGznkJyn6lyhmXpu62yq7SMCeHAl3Bl8c+P6mXfmatjjxEpVmrzRuzKMPd/MRGpy2B/glkuyO4wZZazow==
8094+
8095+
8096+
version "1.6.1"
8097+
resolved "https://registry.yarnpkg.com/lefthook-freebsd-x64/-/lefthook-freebsd-x64-1.6.1.tgz#fbc9a5a7c2acaacc5494cf0e21083f21bad8057d"
8098+
integrity sha512-/NBjMUtnwvdc/p821sfPnZCbWZ6FQkAvnvjoaQu6tkajKZbZYSKsl7UtAicO0nT+79BQFt7TbaZjpua2T9tM5w==
8099+
8100+
8101+
version "1.6.1"
8102+
resolved "https://registry.yarnpkg.com/lefthook-linux-arm64/-/lefthook-linux-arm64-1.6.1.tgz#5f50008da8fa164ba9d83542361a0c83429da6ae"
8103+
integrity sha512-ke+2ni/bmxgYJSRsH+uIYYfTLj2It7WP+mcF4rfJHRbzn5yDYIjFgylUMC2CgW5urS4DSbxcRIbAqLY3OXAHnw==
8104+
8105+
8106+
version "1.6.1"
8107+
resolved "https://registry.yarnpkg.com/lefthook-linux-x64/-/lefthook-linux-x64-1.6.1.tgz#a1370cbfc2def92ff7dd1f7dcc71bddca97a8286"
8108+
integrity sha512-/HLkl9jt3XRjT0RPaLpAgUQmvp4zV/KKZ/8x6xslPl89krv3ZkHKKrqeaHdhiengq3hzx3N+KbOfFcxBRzdT6A==
8109+
8110+
8111+
version "1.6.1"
8112+
resolved "https://registry.yarnpkg.com/lefthook-windows-arm64/-/lefthook-windows-arm64-1.6.1.tgz#eaffe44e437182e417006ef7b68f49f219fb7e5e"
8113+
integrity sha512-RyQ8S4/45BpJpRPy7KsOuJeXQ5FOa7MASoPtOYvrXt4A8kayCv1jlGs7MTv3XJbUosCJhfNpw3ReeHVGfw1KIw==
8114+
8115+
8116+
version "1.6.1"
8117+
resolved "https://registry.yarnpkg.com/lefthook-windows-x64/-/lefthook-windows-x64-1.6.1.tgz#c3da7ec991918543be69fe268e91dc5f77ec7548"
8118+
integrity sha512-poYLk2tfg1Ncr4aZeFuhHjv1qH6f9hX3tV1FOK2MfWkXkRTYPl6MF5h/ONMIv71BsLjGbAA7LNXM5Mj4/B//lQ==
8119+
8120+
lefthook@^1.6.1:
8121+
version "1.6.1"
8122+
resolved "https://registry.yarnpkg.com/lefthook/-/lefthook-1.6.1.tgz#56d35b18ba2231b93d669434c1bd52c4532299e9"
8123+
integrity sha512-1T+tk0V6ubZgiZJGi39QlLMAcgEw+lhoDeSpT3L8Y/f8nUpJW9ntcMOmt+uvMfQ3TVjNcR1r/Lhtm7gTqgdcPg==
8124+
optionalDependencies:
8125+
lefthook-darwin-arm64 "1.6.1"
8126+
lefthook-darwin-x64 "1.6.1"
8127+
lefthook-freebsd-arm64 "1.6.1"
8128+
lefthook-freebsd-x64 "1.6.1"
8129+
lefthook-linux-arm64 "1.6.1"
8130+
lefthook-linux-x64 "1.6.1"
8131+
lefthook-windows-arm64 "1.6.1"
8132+
lefthook-windows-x64 "1.6.1"
8133+
80858134
leven@^3.1.0:
80868135
version "3.1.0"
80878136
resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2"

0 commit comments

Comments
 (0)