Skip to content

Commit

Permalink
fix workflow [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Feb 22, 2024
1 parent 671bfe9 commit 64996e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Publish Scoped package to NPM
# continue on error - expecing npm to trow error if scoping is done twice
continue-on-error: true
run: cd dist && node ../scope.js && npm publish --provenance --access public
run: cd dist && node ../scope.js && npm publish --provenance --access public && cd ..
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -58,8 +58,8 @@ jobs:
- name: Publish package with long name for better SEO
continue-on-error: true
run: |
ls -la
npm cache clean --force
cd dist
sed -i -e "s/.*name.*/\t\"name\": \"react18-global-store\",/" package.json
npm publish --access public
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 64996e4

Please sign in to comment.