Skip to content
Closed
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
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Build (Pull Request)"

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- dev
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '23'

- name: Install dependencies
run: npm ci

- name: Run build
run: npm run build
30 changes: 0 additions & 30 deletions .github/workflows/deploy.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '23'
registry-url: https://npm.pkg.github.com/
scope: '@modl-gg'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "modl-shared-web",
"name": "@modl-gg/shared-web",
"version": "1.0.0",
"description": "Shared schemas and types for the modl ecosystem.",
"main": "dist/index.js",
Expand Down Expand Up @@ -63,12 +63,20 @@
"build:esm": "tsc -p tsconfig.esm.json",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/modl-gg/shared-web.git"
},
"homepage": "https://github.com/modl-gg/shared-web",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"keywords": [
"modl",
"shared"
],
"author": "",
"license": "ISC",
"author": "modl-gg",
"license": "AGPL-3.0-only",
"dependencies": {
"clsx": "^2.1.1",
"tailwind-merge": "^2.3.0",
Expand Down Expand Up @@ -125,4 +133,4 @@
"@types/react": "^18.3.3",
"@types/express-session": "^1.18.2"
}
}
}
3 changes: 2 additions & 1 deletion src/schemas/TenantSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ export const ReplySchema = new Schema({
created: { type: Date, default: Date.now },
staff: { type: Boolean, default: false },
action: { type: String },
attachments: [{ type: mongoose.Schema.Types.Mixed }]
attachments: [{ type: mongoose.Schema.Types.Mixed }],
creatorIdentifier: { type: String } // Browser/device identifier for creator verification
});

export const TicketSchema = new Schema({
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export interface IReply {
avatar?: string;
action?: string;
attachments?: any[];
creatorIdentifier?: string; // Browser/device identifier for creator verification
}

export interface ITicket extends Document {
Expand Down