-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Armin Jazi
committed
Jun 11, 2024
1 parent
f369e2f
commit 0b26c00
Showing
6 changed files
with
97 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Node.js Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- run: npm ci | ||
- run: npm run test:unit | ||
- run: npm run build | ||
- run: npm run build:types | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
path: dist | ||
|
||
publish-gpr: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: '@openreplyde' | ||
- run: npm ci | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
path: dist | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import GlobalSyncEvent, { GlobalSyncEventType } from "~/core/global-sync-event"; | ||
import useQuery from "~/core/use-query"; | ||
import { DefaultCache } from "~/core/default-cache"; | ||
import { DefaultCacheSync } from "~/core/default-cache-sync"; | ||
|
||
declare global { | ||
interface WindowEventMap { | ||
[GlobalSyncEventType]: GlobalSyncEvent<unknown>; | ||
} | ||
} | ||
|
||
export { GlobalSyncEvent, GlobalSyncEventType, useQuery, DefaultCache, DefaultCacheSync }; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"target": "ESNext", | ||
"useDefineForClassFields": true, | ||
"module": "ESNext", | ||
"moduleResolution": "Node", | ||
"noImplicitAny": true, | ||
"declaration": true, | ||
"strict": true, | ||
"jsx": "preserve", | ||
"sourceMap": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"lib": ["ESNext", "DOM"], | ||
"skipLibCheck": true, | ||
"outDir": "./dist", | ||
"paths": { | ||
"~/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["./src/core/**/*"], | ||
"exclude": ["./src/app*", "./src/test-server", "./src/testing", "./src/**/*.spec.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters