diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29ade7f..954ecec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,10 +10,10 @@ jobs: ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc cache: npm - run: npm ci - run: npm run lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4d602dd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: NPM Publish +on: + pull_request: + types: [labeled] + branches: [master] +jobs: + npm-publish: + if: ${{ github.event.label.name == 'npm-ready-for-publish' }} + uses: pipedrive-actions/github-actions-workflows/.github/workflows/reusable_cicd-npm-publish.yml@master + with: + revision: ${{ github.event.pull_request.head.ref }} + skip_functional_tests: true + use_trusted_publisher: true + permissions: + id-token: write + contents: write + secrets: inherit \ No newline at end of file diff --git a/package.json b/package.json index c92783d..125e7c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-pipedrive-app", - "version": "0.1.0", + "version": "0.0.1", "description": "Scaffold a production-ready Pipedrive Marketplace app", "license": "MIT", "type": "module", @@ -38,5 +38,8 @@ "typescript": "^5.4.0", "typescript-eslint": "^8.0.0", "vitest": "^1.6.0" + }, + "publishConfig": { + "access": "public" } } diff --git a/repository.json b/repository.json new file mode 100644 index 0000000..8c0a40d --- /dev/null +++ b/repository.json @@ -0,0 +1,7 @@ +{ + "name": "create-pipedrive-app", + "description": "Scaffold a production-ready Pipedrive Marketplace app", + "owner": "Gravity", + "type": "library", + "status": "released" +} \ No newline at end of file diff --git a/vitest.config.ts b/vitest.config.ts index b664da7..7e8a280 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,6 +3,7 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { environment: 'node', + include: ['src/**/*.test.ts'], exclude: ['**/node_modules/**', '**/.claude/**'], }, });