Files
git-agent-sync/.gitea/workflows/release.yml
7000pctAUTO 4f641855d9
Some checks failed
/ test (push) Failing after 7s
/ lint (push) Failing after 5s
/ release (push) Failing after 7s
Add tests, templates, and Gitea Actions workflows
2026-02-03 07:58:13 +00:00

39 lines
745 B
YAML

on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub/Gitea Release
uses: https://gitea.com/actions/release-action@main
with:
files: |
dist/**
LICENSE
README.md