Auto releases (CI)

This commit is contained in:
MotorTruck1221 2025-05-05 00:18:51 -06:00
parent e53b28f777
commit 5d480bf78e
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4
3 changed files with 64 additions and 2 deletions

12
.changeset/config.json Normal file
View file

@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "RadiusProxy/Radius" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": { "version": true, "tag": true }
}

50
.github/workflows/releases.yml vendored Normal file
View file

@ -0,0 +1,50 @@
name: Release
on:
push:
branches:
- main
workflow_dispatch:
defaults:
run:
shell: bash
env:
FORCE_COLOR: true
jobs:
changelog:
name: Release TAG
if: ${{ github.repository_owner == 'radiusproxy' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 9.1.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm exec changeset publish
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -1,7 +1,7 @@
{
"name": "new",
"name": "Radius",
"type": "module",
"version": "0.0.1",
"version": "1.0.0",
"scripts": {
"dev:server": "tsx --watch server",
"dev:client": "astro dev",