Add Gitea Actions workflow: release.yml
Some checks failed
CI / test (push) Failing after 46s

This commit is contained in:
2026-01-30 00:53:18 +00:00
parent 2965bd730b
commit 19ad699388

View File

@@ -0,0 +1,42 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- 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 Release
uses: https://gitea.com/actions/release-action@main
with:
files: |
dist/**
LICENSE
README.md
draft: false
prerelease: false