diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1ee7edd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Publish + +on: + push: + branches: + - 'main' + +jobs: + publish: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: Checkout project + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Setup pnpm + uses: pnpm/action-setup@v4.0.0 + with: + version: 9 + + - name: Publish + env: + NPM_TOKEN: ${{ secrets.NPM_BOT_TOKEN }} + run: pnpm -r publish --access public diff --git a/package.json b/package.json index 5a5bacc..21a3ca6 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "ui-kit", + "private": true, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/packages/primevue/package.json b/packages/primevue/package.json index 4428d3b..5628bc6 100644 --- a/packages/primevue/package.json +++ b/packages/primevue/package.json @@ -1,19 +1,23 @@ { "name": "@caido/primevue", - "version": "0.0.0", - "description": "", + "version": "0.0.1", + "description": "Primevue theme for Caido", "main": "dist/primevue.mjs", "types": "dist/types/index.d.ts", "scripts": { + "prepublish": "pnpm build", "build": "vite build && tsc --emitDeclarationOnly", "test": "echo \"Error: no test specified\" && exit 1" }, + "files": [ + "dist" + ], "keywords": [], "author": "Caido Labs Inc.", "license": "MIT", "devDependencies": { "typescript": "5.5.4", - "vite": "^5.4.0" + "vite": "5.4.0" }, "dependencies": { "@primevue/themes": "^4.0.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24e2e85..65c029b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,7 +18,7 @@ importers: specifier: 5.5.4 version: 5.5.4 vite: - specifier: ^5.4.0 + specifier: 5.4.0 version: 5.4.0 packages: