File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff 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
2727outputs :
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 }}"
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if [ ! -z "$6" ]; then
3939fi
4040
4141if [ ! -z " $7 " ]; then
42- raycast_alpha_npm_token =$7
42+ raycast_api_alpha_npm_token =$7
4343fi
4444
4545function 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
Original file line number Diff line number Diff line change 33set -e
44
55version=$1
6- raycast_alpha_npm_token =$2
6+ raycast_api_alpha_npm_token =$2
77
88if [[ " $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
You can’t perform that action at this time.
0 commit comments