Skip to content

Commit

Permalink
chore: split build and publish in 2 steps to avoid overwritting .npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Oct 30, 2023
1 parent c2e601c commit a9ee47c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -45,11 +45,11 @@ jobs:
- name: Install Nx
run: yarn add nx

- name: Create destination path
run: mkdir -p ${{ env.DESTINATION_PATH }}
- name: Build
run: yarn nx build ${{ inputs.lib }}

- name: Copy .npmrc to destination
run: cp /home/runner/work/_temp/.npmrc ${{ env.DESTINATION_PATH }}/
run: cp ${{ env.NPM_CONFIG_USERCONFIG }} ${{ env.DESTINATION_PATH }}/

- name: Publish
run: yarn nx publish ${{ inputs.lib }} --tag ${{ inputs.tag }}

0 comments on commit a9ee47c

Please sign in to comment.