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
6 changes: 4 additions & 2 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
if [ "${{ github.event.inputs.nightly }}" = "true" ]; then
pnpm nx release publish --projects=${{ github.event.inputs.packages }} --tag nightly
export NX_RELEASE_TAG=nightly
pnpm nx run-many -t nx-release-publish --projects=${{ github.event.inputs.packages }}
else
pnpm nx release publish --projects=${{ github.event.inputs.packages }}
export NX_RELEASE_TAG=latest
pnpm nx run-many -t nx-release-publish --projects=${{ github.event.inputs.packages }}
fi

- name: Create Pull Request
Expand Down
2 changes: 1 addition & 1 deletion packages/add-inbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"prebuild": "rimraf dist",
"build": "tsc",
"start": "ts-node src/cli/index.ts",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build > /dev/null 2>&1"
},
"keywords": [
"novu",
Expand Down
1 change: 0 additions & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"check": "biome check .",
"check:fix": "biome check --write .",
"test": "jest",
"publish": "pnpm publish",
"publish:rc": "pnpm publish --tag rc"
},
"browserslist": {
Expand Down
8 changes: 7 additions & 1 deletion packages/js/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"options": {
"command": "npx biome lint packages/js"
}
},
"nx-release-publish": {
"executor": "nx:run-commands",
"options": {
"command": "cd packages/js && pnpm publish --access public --no-git-checks --tag ${NX_RELEASE_TAG:-latest}"
}
}
}
}
}
1 change: 0 additions & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"build": "tsup && pnpm run build:declarations && pnpm run check-exports",
"build:declarations": "tsc -p tsconfig.declarations.json",
"check-exports": "attw --pack . --ignore-rules unexpected-module-syntax",
"publish": "pnpm publish",
"publish:rc": "pnpm publish --tag rc"
},
"browserslist": {
Expand Down
13 changes: 13 additions & 0 deletions packages/nextjs/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@novu/nextjs",
"sourceRoot": "packages/nextjs/src",
"projectType": "library",
"targets": {
"nx-release-publish": {
"executor": "nx:run-commands",
"options": {
"command": "cd packages/nextjs && pnpm publish --access public --no-git-checks --tag ${NX_RELEASE_TAG:-latest}"
}
}
}
}
13 changes: 13 additions & 0 deletions packages/react-native/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@novu/react-native",
"sourceRoot": "packages/react-native/src",
"projectType": "library",
"targets": {
"nx-release-publish": {
"executor": "nx:run-commands",
"options": {
"command": "cd packages/react-native && pnpm publish --access public --no-git-checks --tag ${NX_RELEASE_TAG:-latest}"
}
}
}
}
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"check-exports": "attw --pack .",
"check": "biome check .",
"check:fix": "biome check --write .",
"publish": "pnpm publish",
"publish:rc": "pnpm publish --tag rc"
},
"browserslist": {
Expand Down
13 changes: 13 additions & 0 deletions packages/react/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@novu/react",
"sourceRoot": "packages/react/src",
"projectType": "library",
"targets": {
"nx-release-publish": {
"executor": "nx:run-commands",
"options": {
"command": "cd packages/react && pnpm publish --access public --no-git-checks --tag ${NX_RELEASE_TAG:-latest}"
}
}
}
}
Loading