From d0e6fb43d202c95933bf20523dbec11396ced6fa Mon Sep 17 00:00:00 2001 From: babblebey Date: Sat, 11 Jul 2026 19:27:30 +0100 Subject: [PATCH 1/2] chore(release): add GitHub Actions workflow for automated releases --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..53257f4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release +"on": + push: + branches: + - main + - next + - beta + - alpha + - "*.x" +permissions: + contents: read # for checkout +jobs: + release: + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + cache: npm + node-version: lts/* + - run: npm clean-install + - run: npm install --global corepack@latest + - run: corepack npm audit signatures + - run: npx semantic-release-react@1.0.0-beta.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 4704904..bf9e5ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fircle", - "version": "0.1.0", + "version": "0.0.0", "private": true, "type": "module", "scripts": { From 790eb3e63d8f15b84c0d55335ec4e021ea1a5017 Mon Sep 17 00:00:00 2001 From: babblebey Date: Sat, 11 Jul 2026 19:35:26 +0100 Subject: [PATCH 2/2] chore(release): update release workflow to use pnpm for package management --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53257f4..f618a53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,13 +19,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: pnpm/action-setup@v4 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - cache: npm + cache: pnpm node-version: lts/* - - run: npm clean-install + - run: pnpm install --frozen-lockfile - run: npm install --global corepack@latest - - run: corepack npm audit signatures - - run: npx semantic-release-react@1.0.0-beta.3 + - run: corepack pnpm audit signatures + - run: pnpm dlx semantic-release-react@1.0.0-beta.3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file