Skip to content

Commit 73dc5a0

Browse files
fix: correct git push command and ensure proper directory for npm publish
1 parent f7dde0d commit 73dc5a0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ jobs:
2929
3030
- name: Bump version (patch)
3131
run: |
32+
cd react-sdk
3233
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
3334
git config user.name "github-actions[bot]"
3435
git config user.email "github-actions[bot]@users.noreply.github.com"
3536
npm version patch -m "chore: bump version to %s [skip ci]"
36-
git push https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/chetannn-github/feature-flow/tree/main/react-sdk.git main --follow-tags
37+
git push https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/chetannn-github/feature-flow.git main --follow-tags
3738
3839
- name: Publish to NPM
39-
run: npm publish --access public
40+
run: |
41+
cd react-sdk
42+
npm publish --access public
4043
env:
41-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)