Skip to content

Commit

Permalink
WIP: release management
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Jun 13, 2024
1 parent c33eeda commit 061cc01
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: oven-sh/setup-bun@v1
- run: bun install --globally yarn
- run: bun install
- name: Build
run: bun run --filter './packages/*' build
- name: Release
run: yarn workspaces run semantic-release -e semantic-release-monorepo
8 changes: 8 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "semantic-release-monorepo",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog"
]
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
"private": true,
"workspaces": {
"packages": [
"packages/*",
"pylon-template"
"packages/*"
]
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/release-notes-generator": "^14.0.0",
"@types/node": "^18.14.0",
"bun-types": "^1.0.14"
"bun-types": "^1.0.14",
"semantic-release": "^24.0.0",
"semantic-release-monorepo": "^8.0.2"
},
"dependencies": {}
}
2 changes: 1 addition & 1 deletion packages/pylon-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getcronit/pylon-builder",
"version": "0.0.50",
"version": "1.0.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/pylon-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getcronit/pylon-cli",
"version": "0.0.26",
"version": "1.0.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/pylon-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getcronit/pylon-server",
"version": "0.0.47",
"version": "1.0.0",
"source": "src/index.ts",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/pylon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getcronit/pylon",
"version": "0.0.86",
"version": "1.0.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 061cc01

Please sign in to comment.