diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..47148c1 --- /dev/null +++ b/.changeset/config.json @@ -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 } +} diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml new file mode 100644 index 0000000..c076a12 --- /dev/null +++ b/.github/workflows/releases.yml @@ -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 }} diff --git a/package.json b/package.json index 0eeef01..d6f61c4 100644 --- a/package.json +++ b/package.json @@ -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",