feat: Added pipeline to publish to gitea
Some checks failed
Publish Svelte Tailwind Library / build-and-publish (push) Has been cancelled
Some checks failed
Publish Svelte Tailwind Library / build-and-publish (push) Has been cancelled
This commit is contained in:
29
.gitea/workflows/deploy.yaml
Normal file
29
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Publish Svelte Tailwind Library
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-publish:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
registry-url: https://git.luke-else.co.uk/api/packages/luke-else/npm/
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Build package
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: Publish to Gitea Packages
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
|
||||||
|
run: npm publish --registry https://git.luke-else.co.uk/api/packages/luke-else/npm/
|
Reference in New Issue
Block a user