Skip to content

Commit

Permalink
put everything in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Jan 10, 2020
1 parent 4b1fd9f commit afea590
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/lona-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ jobs:
with:
output_folder: ${{ steps.lona.outputs.output_folder }}

- name: Authenticate with GitHub package registry
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc

- name: Generate and publish npm package
run: |
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
Expand Down

0 comments on commit afea590

Please sign in to comment.