Updated workflow file to use packages repo only once built
Some checks failed
Publish to Gitea Packages / publish (push) Failing after 1m4s

This commit is contained in:
2025-06-29 13:39:31 +01:00
parent fd8cc333ed
commit 86d4833758

View File

@ -14,8 +14,6 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
registry-url: https://git.luke-else.co.uk/api/packages/luke-else/npm/
- name: Install dependencies
run: npm install
@ -23,7 +21,8 @@ jobs:
- name: Run build
run: npm run build
- name: Publish to Gitea Registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
- name: Publish to Gitea registry
run: |
npm config set registry https://git.luke-else.co.uk/api/packages/luke-else/npm/
echo "//git.luke-else.co.uk/api/packages/luke-else/npm/:_authToken=${{ secrets.CONTAINER_REGISTRY_PASSKEY }}" >> ~/.npmrc
npm publish