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
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

on:
workflow_run:
workflows: ["Build and Test"]
types:
- completed

jobs:
release:
if: |
github.event.workflow_run.conclusion == 'success' &&
(github.event.workflow_run.head_branch == 'master' || github.event.workflow_run.head_branch == 'develop')
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Setup Latest Yarn
uses: threeal/setup-yarn-action@v2.0.0
with:
version: berry
cache: false

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
33 changes: 33 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"branches": [
"master",
{
"name": "develop",
"prerelease": "next",
"channel": "next"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"packages/*/"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sidequest-monorepo",
"private": true,
"type": "module",
"version": "1.0.0",
"version": "0.0.1",
"description": "Monorepo for Sidequest.js",
"engines": {
"node": ">=22.6.0"
Expand Down Expand Up @@ -47,6 +47,12 @@
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-typescript": "^12.1.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.3",
"@semantic-release/release-notes-generator": "^14.0.3",
"@tailwindcss/cli": "^4.1.10",
"@tailwindcss/postcss": "^4.1.10",
"@tsconfig/recommended": "^1.0.8",
Expand All @@ -67,6 +73,7 @@
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-postcss": "^4.0.2",
"semantic-release": "^24.2.7",
"tailwindcss": "^4.1.10",
"tsx": "^4.19.4",
"turbo": "^2.5.5",
Expand Down
5 changes: 4 additions & 1 deletion packages/backends/backend-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/backend-test",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
Expand All @@ -10,6 +10,9 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w"
Expand Down
5 changes: 4 additions & 1 deletion packages/backends/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/backend",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
Expand All @@ -10,6 +10,9 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
5 changes: 4 additions & 1 deletion packages/backends/mongo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/mongo-backend",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"license": "LGPL-3.0-or-later",
"type": "module",
"main": "./dist/mongo-backend.cjs",
Expand All @@ -11,6 +11,9 @@
"import": "./dist/mongo-backend.js",
"require": "./dist/mongo-backend.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
5 changes: 4 additions & 1 deletion packages/backends/mysql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/mysql-backend",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"license": "LGPL-3.0-or-later",
"type": "module",
"main": "./dist/mysql-backend.cjs",
Expand All @@ -11,6 +11,9 @@
"import": "./dist/mysql-backend.js",
"require": "./dist/mysql-backend.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
5 changes: 4 additions & 1 deletion packages/backends/postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/postgres-backend",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"license": "LGPL-3.0-or-later",
"type": "module",
"main": "./dist/postgres-backend.cjs",
Expand All @@ -11,6 +11,9 @@
"import": "./dist/postgres-backend.js",
"require": "./dist/postgres-backend.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
5 changes: 4 additions & 1 deletion packages/backends/sqlite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/sqlite-backend",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"license": "LGPL-3.0-or-later",
"type": "module",
"main": "./dist/sqlite-backend.cjs",
Expand All @@ -11,6 +11,9 @@
"import": "./dist/sqlite-backend.js",
"require": "./dist/sqlite-backend.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/cli",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"license": "LGPL-3.0-or-later",
"type": "module",
"bin": {
Expand All @@ -12,7 +12,7 @@
"dev": "npx rollup -c -w"
},
"files": [
"dist/cli.js"
"dist"
],
"dependencies": {
"@sidequest/backend": "workspace:*",
Expand Down
5 changes: 4 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/core",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand All @@ -10,6 +10,9 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
5 changes: 4 additions & 1 deletion packages/dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/dashboard",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand All @@ -10,6 +10,9 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w"
Expand Down
5 changes: 4 additions & 1 deletion packages/engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidequest/engine",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand All @@ -10,6 +10,9 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
5 changes: 4 additions & 1 deletion packages/sidequest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sidequest",
"version": "1.0.0-alpha.1",
"version": "0.0.1",
"license": "LGPL-3.0-or-later",
"type": "module",
"main": "./dist/index.cjs",
Expand All @@ -11,6 +11,9 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"files": [
"dist"
],
"scripts": {
"build": "npx rollup -c",
"dev": "npx rollup -c -w",
Expand Down
Loading
Loading