From 658cd314b9875d4ec39b0fb7ffa58160d4cffcb6 Mon Sep 17 00:00:00 2001 From: Frederik Wallner Date: Thu, 9 Oct 2025 08:10:20 +0200 Subject: [PATCH 1/2] Setup release publishing --- .github/workflows/release.yml | 45 +++++++++++++++++++++++++++++++++++ nx.json | 13 ++++++++-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..842bdd6f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,45 @@ +name: Release + +on: + push: + tags: + - v*.*.* + +jobs: + test: + name: Publish + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write # needed for provenance data generation + timeout-minutes: 10 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: tree:0 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + + - run: pnpm install --frozen-lockfile + + - name: Print Environment Info + run: npx nx report + shell: bash + + - name: Publish packages + run: npx nx release publish + shell: bash + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} + NPM_CONFIG_PROVENANCE: true diff --git a/nx.json b/nx.json index 60c2744f..9b203c87 100644 --- a/nx.json +++ b/nx.json @@ -50,8 +50,17 @@ ], "targetDefaults": { "test": { "dependsOn": ["^build"] } }, "release": { - "projects": ["!utils", "!@effect-firebase/source"], - "version": { "preVersionCommand": "pnpm dlx nx run-many -t build" } + "projects": ["!utils", "!@effect-firebase/source", "!@example/*"], + "version": { + "preVersionCommand": "pnpm dlx nx run-many -t build", + "conventionalCommits": true + }, + "changelog": { + "workspaceChangelog": { + "file": false, + "createRelease": "github" + } + } }, "nxCloudId": "68e6b41204d3d892e997c97b" } From 6d6d4a606dff1e885bfc42e1bffaf272c37f341c Mon Sep 17 00:00:00 2001 From: Frederik Wallner Date: Thu, 9 Oct 2025 08:10:30 +0200 Subject: [PATCH 2/2] Add name to CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74f6a3e8..accb8e8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ permissions: jobs: main: + name: Main runs-on: ubuntu-latest steps: - uses: actions/checkout@v4