Skip to content

Commit

Permalink
🔧 chore: Update monorepo publish
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Jul 17, 2024
1 parent 23ff95a commit e6b36d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ runs:
run: |
npm config set "registry=https://registry.npmjs.org" --location=project
npm config set "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" --location=project
npm config set "always-auth=true" --location=project
if [ ${{ inputs.node-version }} == 16* ]; then npm config set "always-auth=true" --location=project; fi
npm publish --access=public
rm .npmrc
git checkout .npmrc || true
Expand All @@ -158,6 +158,7 @@ runs:
for item in "${PUBLIC_NPM_LIST[@]}"; do
cd $PROJECT_ROOT
cd "$item"
npm ci
npm run build
NPM_TOKEN=${{ inputs.monorepo-private-npm-token }}
NPMRC_AUTH_EXISTS=$(grep -c _auth .npmrc)
Expand All @@ -175,10 +176,11 @@ runs:
for item in "${PUBLIC_NPM_LIST[@]}"; do
cd $PROJECT_ROOT
cd "$item"
npm ci
npm run build
npm config set "registry=https://registry.npmjs.org" --location=project
npm config set "//registry.npmjs.org/:_authToken=${{ inputs.monorepo-public-npm-token }}" --location=project
npm config set "always-auth=true" --location=project
if [ ${{ inputs.node-version }} == 16* ]; then npm config set "always-auth=true" --location=project; fi
npm publish --access=public
rm .npmrc
git checkout .npmrc || true
Expand Down

0 comments on commit e6b36d5

Please sign in to comment.