Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:

jobs:
main:
name: Main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 11 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}