diff --git a/.github/workflows/client-publish.yml b/.github/workflows/client-publish.yml index a38dc36c..8e990ddc 100644 --- a/.github/workflows/client-publish.yml +++ b/.github/workflows/client-publish.yml @@ -30,6 +30,10 @@ jobs: id: package-version run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV + - name: Copy README to client directory + run: cp ../README.md . + working-directory: client + - name: Publish to npm run: yarn publish --access public env: diff --git a/client/package.json b/client/package.json index 5543b87b..3c7b293d 100644 --- a/client/package.json +++ b/client/package.json @@ -1,21 +1,25 @@ { - "name": "gridify-client", - "version": "2.0.0-preview", - "description": "Client JS library for the dotnet Gridify project", - "main": "dist/GridifyQueryBuilder.js", - "types": "dist/GridifyQueryBuilder.d.ts", - "repository": "https://github.com/alirezanet/Gridify/", - "author": "AliReza Sabouri", - "license": "MIT", - "scripts": { - "build": "tsc", - "watch": "tsc -w", - "test": "jest" - }, - "devDependencies": { - "@types/jest": "^29.5.8", - "jest": "^29.7.0", - "ts-jest": "^29.1.1", - "typescript": "^5.2.2" - } + "name": "gridify-client", + "version": "2.0.0-preview", + "description": "Client JS library for the dotnet Gridify project", + "main": "dist/GridifyQueryBuilder.js", + "types": "dist/GridifyQueryBuilder.d.ts", + "repository": "https://github.com/alirezanet/Gridify/", + "homepage": "https://alirezanet.github.io/Gridify/guide/gridify-client/", + "author": "AliReza Sabouri", + "license": "MIT", + "scripts": { + "build": "tsc", + "watch": "tsc -w", + "test": "jest" + }, + "devDependencies": { + "@types/jest": "^29.5.8", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "typescript": "^5.2.2" + }, + "files": [ + "dist/**/*" + ] }