Skip to content

Commit aaabb71

Browse files
CI: update RayCLI to v1.17.0
1 parent 87b1f2e commit aaabb71

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

ray-cli/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inputs:
2121
npmrc_path:
2222
description: "Path to npmrc file to access private npm packages"
2323
required: false
24-
raycast_alpha_npm_token:
24+
raycast_api_alpha_npm_token:
2525
description: "NPM token for alpha version of @raycast/api"
2626
required: false
2727
outputs:
@@ -38,4 +38,4 @@ runs:
3838
GITHUB_WORKSPACE: $GITHUB_WORKSPACE
3939
run: |
4040
set -e -o noglob
41-
${{ github.action_path }}/ray_cli.sh "${{ inputs.command }}" "${{ inputs.paths }}" "${{ inputs.access_token }}" "${{ inputs.extension_schema }}" "${{ inputs.allow_owners_only_for_extensions }}" "${{ inputs.npmrc_path }}" "${{ inputs.raycast_alpha_npm_token }}"
41+
${{ github.action_path }}/ray_cli.sh "${{ inputs.command }}" "${{ inputs.paths }}" "${{ inputs.access_token }}" "${{ inputs.extension_schema }}" "${{ inputs.allow_owners_only_for_extensions }}" "${{ inputs.npmrc_path }}" "${{ inputs.raycast_api_alpha_npm_token }}"

ray-cli/ray_cli.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ ! -z "$6" ]; then
3939
fi
4040

4141
if [ ! -z "$7" ]; then
42-
raycast_alpha_npm_token=$7
42+
raycast_api_alpha_npm_token=$7
4343
fi
4444

4545
function ray_command_from_string() {
@@ -121,13 +121,13 @@ for dir in "${paths[@]}" ; do
121121
else
122122
api_version=$(jq '.dependencies."@raycast/api"' package.json)
123123
if [[ "$api_version" == *"alpha"* ]]; then
124-
if [ -z "$raycast_alpha_npm_token" ]; then
125-
echo "::error::Alpha version of @raycast/api used without raycast_alpha_npm_token parameter"
124+
if [ -z "$raycast_api_alpha_npm_token" ]; then
125+
echo "::error::Alpha version of @raycast/api used without raycast_api_alpha_npm_token parameter"
126126
exit_code=1
127127
continue
128128
else
129129
echo "Generating .npmrc for alpha version of @raycast/api"
130-
echo "//npm.pkg.github.com/:_authToken=$raycast_alpha_npm_token" > .npmrc
130+
echo "//npm.pkg.github.com/:_authToken=$raycast_api_alpha_npm_token" > .npmrc
131131
echo "@raycast:registry=https://npm.pkg.github.com" >> .npmrc
132132
echo "legacy-peer-deps=true" >> .npmrc
133133
cleanup_npmrc=true

setup-cli/setup_cli.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
set -e
44

55
version=$1
6-
raycast_alpha_npm_token=$2
6+
raycast_api_alpha_npm_token=$2
77

88
if [[ "$version" == *"alpha"* ]]; then
9-
if [ -z "$raycast_alpha_npm_token" ]; then
10-
echo "::error::Alpha version of @raycast/api used without raycast_alpha_npm_token parameter"
9+
if [ -z "$raycast_api_alpha_npm_token" ]; then
10+
echo "::error::Alpha version of @raycast/api used without raycast_api_alpha_npm_token parameter"
1111
exit 1
1212
else
13-
echo "//npm.pkg.github.com/:_authToken=$raycast_alpha_npm_token" > ~/.npmrc
13+
echo "//npm.pkg.github.com/:_authToken=$raycast_api_alpha_npm_token" > ~/.npmrc
1414
echo "@raycast:registry=https://npm.pkg.github.com" >> ~/.npmrc
1515
echo "legacy-peer-deps=true" >> ~/.npmrc
1616
cleanup_npmrc=true

0 commit comments

Comments
 (0)