Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Jun 2, 2023
1 parent 0434d6d commit a489c38
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
Expand All @@ -24,12 +25,15 @@ jobs:
run: npm run increment-version
- name: Push new version
run: |
git config --global user.name "Ayanel CI"
echo ${{ github.actor }}
echo ${{ github.repository }}
REPO=https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git config http.sslVerify false
git config --global user.email "otiai10+ayanel-ci@gmail.com"
git config --global user.name "Ayanel CI"
git add package.json package-lock.json
REPO="https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
git commit -m "Bump version"
git push ${REPO} HEAD:main --tags --follow-tags
git push ${REPO} HEAD:main --follow-tags
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a489c38

Please sign in to comment.