@sanity/plugin-kit 2.1.15 → 2.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -76,11 +76,6 @@ cd /path/to/my-studio
|
|
|
76
76
|
npx yalc add sanity-plugin-testing-it-out && npx yalc link sanity-plugin-testing-it-out && npm install
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
# Use this command if your studio uses yarn
|
|
80
|
-
npx yalc add sanity-plugin-testing-it-out && npx yalc link sanity-plugin-testing-it-out && npm install
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
|
|
84
79
|
Now, configure the plugin in sanity.config.ts (or .js) in Sanity Studio:
|
|
85
80
|
|
|
86
81
|
```ts
|
|
@@ -4,10 +4,10 @@ name: CI & Release
|
|
|
4
4
|
# Workflow name based on selected inputs. Fallback to default Github naming when expression evaluates to empty string
|
|
5
5
|
run-name: >-
|
|
6
6
|
${{
|
|
7
|
-
inputs.release && inputs.test && 'Build ➤ Test ➤ Publish to NPM' ||
|
|
8
|
-
inputs.release && !inputs.test && 'Build ➤ Skip Tests ➤ Publish to NPM' ||
|
|
9
|
-
github.event_name == 'workflow_dispatch' && inputs.test && 'Build ➤ Test' ||
|
|
10
|
-
github.event_name == 'workflow_dispatch' && !inputs.test && 'Build ➤ Skip Tests' ||
|
|
7
|
+
inputs.release && inputs.test && format('Build {0} ➤ Test ➤ Publish to NPM', github.ref_name) ||
|
|
8
|
+
inputs.release && !inputs.test && format('Build {0} ➤ Skip Tests ➤ Publish to NPM', github.ref_name) ||
|
|
9
|
+
github.event_name == 'workflow_dispatch' && inputs.test && format('Build {0} ➤ Test', github.ref_name) ||
|
|
10
|
+
github.event_name == 'workflow_dispatch' && !inputs.test && format('Build {0} ➤ Skip Tests', github.ref_name) ||
|
|
11
11
|
''
|
|
12
12
|
}}
|
|
13
13
|
|
package/lib/package.json
CHANGED