Skip to content

Commit

Permalink
ci: only publish release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
thorpelawrence committed Mar 27, 2021
1 parent 1c47385 commit 22a2fc8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
- run: yarn
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Archive
run: zip -r "npm-github-packages-auth-helper-${npm_config_platform}.zip" .
working-directory: dist
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist
files: 'dist/npm-github-packages-auth-helper-${{ env.npm_config_platform }}.zip'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 22a2fc8

Please sign in to comment.