This repository has been archived on 2026-02-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
owlboardts/.gitea/workflows/publish.yaml
Fred Boniface 96f7074603
Some checks failed
Publish Package / build-and-publish (push) Failing after 7s
Testing / run-tests (push) Successful in 6m16s
Update .gitea/workflows/publish.yaml
2026-02-12 20:35:26 +00:00

38 lines
815 B
YAML

name: Publish Package
on:
push:
tags:
- "v*"
jobs:
build-and-publish:
runs-on: ubuntu-22.04
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
# - name: Publish to NPM
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to Gitea Repo
run: npm publish --registry=https://git.fjla.uk
env:
NODE_AUTH_TOKEN: ${{ secrets.REPO_TOKEN }}