My GitHub Action is not publishing my package to npm #170
|
After "renovate" updated the dependency it stopped working I think it must be an error in the yml. Can anyone help me solve it? # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: 🕊️ publish
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # allow GITHUB_TOKEN to publish packages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
registry: "https://registry.npmjs.org/" |
Answered by
mcous
Dec 30, 2023
Replies: 3 comments 4 replies
|
https://github.com/sebastianjnuwu/nlogin/actions/runs/7365251588/job/20046390721 |
0 replies
|
Looking through your action logs, it looks like your package was successfully published by the first run of the action after the update: https://github.com/sebastianjnuwu/nlogin/actions/runs/7365196474/job/20046274967 On subsequent runs of the action, the publish was skipped because version 1.0.3 already existed in the registry |
4 replies
Answer selected by
mcous
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Looking through your action logs, it looks like your package was successfully published by the first run of the action after the update:
https://github.com/sebastianjnuwu/nlogin/actions/runs/7365196474/job/20046274967
On subsequent runs of the action, the publish was skipped because version 1.0.3 already existed in the registry