chore: simplify npm-publish workflow
All checks were successful
Deploy to Production / deploy (push) Successful in 4s
All checks were successful
Deploy to Production / deploy (push) Successful in 4s
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user