From 7ef3a309ed7df3124dbe1cedd76c5197462e23a2 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 2 Oct 2024 18:15:35 -0700 Subject: [PATCH] Publish from within directory --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43e98f14..2b3f77ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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}}