diff --git a/.github/workflows/js_client_ci.yaml b/.github/workflows/js_client_ci.yaml new file mode 100644 index 0000000..79b7c46 --- /dev/null +++ b/.github/workflows/js_client_ci.yaml @@ -0,0 +1,41 @@ +name: JS Client Build & Test + +on: + pull_request: + +defaults: + run: + working-directory: js-client + +jobs: + ci: + name: Build & Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - name: Setup Node + uses: actions/setup-node@v5 + with: + node-version-file: js-client/.nvmrc + cache: "npm" + cache-dependency-path: "js-client/package-lock.json" + registry-url: "https://registry.npmjs.org" + - name: Install + run: npm install + - name: Verify Integrity + run: npm audit signatures --omit=dev + - name: Lint + run: + npx nx affected:lint --parallel=3 --base=${{ github.event.pull_request.base.sha }} --head=${{ + github.event.pull_request.head.sha }} + - name: Test + run: + npx nx affected:test --parallel=3 --base=${{ github.event.pull_request.base.sha }} --head=${{ + github.event.pull_request.head.sha }} + - name: Build + run: + npx nx affected:build --parallel=1 --base=${{ github.event.pull_request.base.sha }} --head=${{ + github.event.pull_request.head.sha }} diff --git a/.github/workflows/js_client_release.yaml b/.github/workflows/js_client_release.yaml index 2a8317a..c11d82b 100644 --- a/.github/workflows/js_client_release.yaml +++ b/.github/workflows/js_client_release.yaml @@ -1,4 +1,4 @@ -name: Release +name: JS Client Release on: workflow_dispatch @@ -31,6 +31,8 @@ jobs: run: npm install -g npm@latest - name: Install run: npm ci + - name: Verify Integrity + run: npm audit signatures --omit=dev - name: Test run: npx nx run-many -t test - name: Test Build diff --git a/js-client/README.md b/js-client/README.md index fac0249..088bfd6 100644 --- a/js-client/README.md +++ b/js-client/README.md @@ -28,8 +28,8 @@ For detailed API documentation and examples, see the [@leancodepl/pipe README](. 3. Run `npx lerna version [version]` e.g. `npx lerna version 1.2.3`. This command will automatically bump versions across all files and push the changes. 4. Create a new pull request for this branch. -5. Go to the `Actions` tab, and then `Release` workflow. Expand the `Run workflow` menu, from the `Tags` tab choose your - new version and run the workflow. +5. Go to the `Actions` tab, and then `JS Client Release` workflow. Expand the `Run workflow` menu, from the `Tags` tab + choose your new version and run the workflow. 6. After refreshing the page you should be able to see the workflow running. After it finishes successfully, go back to the previously created PR and merge it. diff --git a/js-client/packages/pipe/CHANGELOG.md b/js-client/packages/pipe/CHANGELOG.md index 577e1dd..7151fe9 100644 --- a/js-client/packages/pipe/CHANGELOG.md +++ b/js-client/packages/pipe/CHANGELOG.md @@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file. See # [2.0.0](https://github.com/leancodepl/leanpipe/compare/js-client-v1.0.2...js-client-v2.0.0) (2026-01-28) -**Note:** Version bump only for package @leancodepl/pipe +### Features + +- uncapitalize pipe responses + ([0faf7c3](https://github.com/leancodepl/leanpipe/commit/0faf7c3b9f3e46bb54e0baed3fe801500b591be0)) # Change Log diff --git a/js-client/packages/pipe/project.json b/js-client/packages/pipe/project.json index eddbdaf..c289750 100644 --- a/js-client/packages/pipe/project.json +++ b/js-client/packages/pipe/project.json @@ -11,7 +11,13 @@ "outputPath": "dist/pipe", "main": "packages/pipe/src/index.ts", "tsConfig": "packages/pipe/tsconfig.lib.json", - "assets": [], + "assets": [ + { + "glob": "packages/pipe/README.md", + "input": ".", + "output": "." + } + ], "project": "packages/pipe/package.json", "compiler": "swc", "format": ["cjs", "esm"]