chore: simplify npm-publish workflow
All checks were successful
Deploy to Production / deploy (push) Successful in 4s

This commit is contained in:
2026-03-03 09:56:41 +00:00
parent 0041f18eab
commit fdee807dda

View File

@@ -19,13 +19,7 @@ jobs:
- run: npm run build - run: npm run build
- name: Publish to npm - name: Publish to npm
run: | run: |
if [ -z "${NPM_TOKEN}" ]; then
echo "ERROR: NPM_TOKEN is empty! Check your Gitea Secrets."
exit 1
fi
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
echo "Checking identity..."
npm whoami
npm publish --access public npm publish --access public
env: env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}