Skip to content

Commit

Permalink
ffff
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Aug 5, 2024
1 parent 1e2b587 commit 1914315
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish-package-to-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ jobs:
- name: Get path
run: pwd && ls -la

- name: Fix permissions
run: sudo chown -R $USER:$USER ./sdk

- name: Prepare SDK for publishing
run: |
sudo npm init -y
sudo jq '.name="your-sdk-name" | .version="0.0.1" | .main="index.js" | .author="Your Name" | .license="MIT" | .private=false' package.json > temp.json && mv temp.json package.json
npm init -y
jq '.name="your-sdk-name" | .version="0.0.1" | .main="index.js" | .author="Your Name" | .license="MIT" | .private=false' package.json > temp.json && mv temp.json package.json
working-directory: ./sdk

- name: Publish SDK to npm
run: npm publish
run: sudo npm publish
working-directory: ./sdk
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1914315

Please sign in to comment.