Skip to content

Commit

Permalink
fix generated package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Jan 10, 2020
1 parent afea590 commit a006d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lona-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Bump the workspace version
id: tag_version
uses: mathieudutour/github-tag-action@v1
uses: mathieudutour/github-tag-action@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
Expand Down Expand Up @@ -94,7 +94,7 @@ 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_tag }}", "publishConfig": { \"registry\": \"https://npm.pkg.github.com/\" }, \"repository\": \"git://github.com/${{ github.repository }}\" }" >> package.json
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
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a006d91

Please sign in to comment.