Skip to content

Commit

Permalink
Publishing fix (#184)
Browse files Browse the repository at this point in the history
* test publishing fix

* disable publishing

* final publishing change

* upd lock file
  • Loading branch information
olexandr13 authored Sep 23, 2024
1 parent c6454b7 commit 9699251
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/auto-publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: npm i
- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "github-cd-bot@example.com"
- run: git status
- run: npm version ${{ github.event.release.tag_name }}
- uses: JS-DevTools/npm-publish@v3
with:
Expand All @@ -26,3 +28,14 @@ jobs:
- run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}

show-npm-log:
runs-on: ubuntu-latest
needs: publish
# run only if the previous job failed
if: failure()
steps:
- run: echo "NPM Logs Directory:"
- run: ls -l /home/runner/.npm/_logs/
- run: echo "Displaying the most recent log:"
- run: cat /home/runner/.npm/_logs/*.log
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9699251

Please sign in to comment.