Skip to content

Commit

Permalink
Update publish-to-npm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy authored May 27, 2024
1 parent 1278ec1 commit ec9f8ff
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,10 @@ jobs:
- name: Install dependencies
run: npm install

- name: Configure npm authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Set GitHub Actions user for Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Bump version and publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git remote set-url origin https://x-access-token:${{ secrets.GH_PAT }}@github.com/shelegdmitriy/near-social-vm-types.git
npm version patch
git push origin main --follow-tags
npm publish

0 comments on commit ec9f8ff

Please sign in to comment.