Skip to content

Commit

Permalink
fix repo in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Jan 10, 2020
1 parent 934119a commit d556202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/lona-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ jobs:
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
./node_modules/.bin/lonac workspace --workspace . --target js --output ./__secret_npm_output
cd __secret_npm_output
echo "{ \"name\": \"@${${{ github.repository }},,}\", \"version\": \"${{ steps.tag_version.outputs.new_version }}\", \"publishConfig\": { \"registry\": \"https://npm.pkg.github.com/\" }, \"repository\": \"git://github.com/${{ github.repository }}\" }" >> package.json
REPO_LOWERCASE=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "{ \"name\": \"@$REPO_LOWERCASE\", \"version\": \"${{ steps.tag_version.outputs.new_version }}\", \"publishConfig\": { \"registry\": \"https://npm.pkg.github.com/\" }, \"repository\": \"git://github.com/${{ github.repository }}\" }" >> package.json
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d556202

Please sign in to comment.