Publish from within directory

This commit is contained in:
Jordan Eldredge 2024-10-02 18:15:35 -07:00
parent 37134c7d31
commit 7ef3a309ed

View file

@ -76,9 +76,10 @@ jobs:
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
run: exit 1 # TODO: Script to update version number in webampLazy.tsx
- name: Publish to npm
working-directory: ./packages/webamp
if: github.ref == 'refs/heads/master' || github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
run: |
npm publish webamp ${TAG}
npm publish ${TAG}
env:
TAG: ${{ github.ref == 'refs/heads/master' && '--tag=next' || ''}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}