1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 13:28:28 -04:00

CI: limit npm publish to our repo

This commit is contained in:
XhmikosR 2021-12-28 08:33:16 +02:00
parent ad4cb8b4b4
commit 825397ea71

View File

@ -88,14 +88,15 @@ jobs:
run: npm run uvu
publish:
if: startsWith(github.ref, 'refs/tags/')
if: github.repository == 'fenneclab/hugo-bin' && startsWith(github.ref, 'refs/tags/')
needs: [lint, test, test-extended]
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'