diff --git a/.github/actions/ci-common-setup-locally-packaged/action.yaml b/.github/actions/ci-common-setup-locally-packaged/action.yaml index 1ce6efc..27539d6 100644 --- a/.github/actions/ci-common-setup-locally-packaged/action.yaml +++ b/.github/actions/ci-common-setup-locally-packaged/action.yaml @@ -4,7 +4,7 @@ description: Reusable common setup with locally packaged library code for projec inputs: node-version: - description: Specific Node.js version to override the common one that's gonna be selected by default + description: Optional specific Node.js version to install (default is v22.5.0) required: false default: v22.5.0 @@ -36,7 +36,7 @@ runs: PACKAGE_FILENAME=$(ls ${{ steps.package-json-info.outputs.package_name }}-${{ steps.package-json-info.outputs.package_version }}.tgz) pnpm i packaged-react-async-iterators@file:./$PACKAGE_FILENAME - - name: Type-check tests code + - name: Redirect code entrypoint from the source code to packaged code shell: bash run: | [[ -e ./src ]] && mv ./src ./src-ignored-for-packaged-testing diff --git a/.github/actions/ci-common-setup/action.yaml b/.github/actions/ci-common-setup/action.yaml index 62050cd..eae0727 100644 --- a/.github/actions/ci-common-setup/action.yaml +++ b/.github/actions/ci-common-setup/action.yaml @@ -4,21 +4,21 @@ description: Reusable common setup for project's CI jobs inputs: node-version: - description: Specific Node.js version to override the common one that's gonna be selected by default + description: Optional specific Node.js version to install (default is v22.5.0) required: false default: v22.5.0 runs: using: composite steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - name: Get Node.js version id: node_version shell: bash - run: echo "version=$(node -v)" >>$GITHUB_OUTPUT + run: echo "version=$(node -v)" >> $GITHUB_OUTPUT - name: Get package manager type and version from `package.json` id: pkg_manager_value @@ -33,7 +33,7 @@ runs: - name: Restore possibly cached dependencies id: cache-node-modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ./node_modules key: node-modules-${{ runner.os }}-${{ steps.node_version.outputs.version }}-${{ hashFiles('./pnpm-lock.yaml') }} diff --git a/.github/workflows/ci-ts-build-check.yaml b/.github/workflows/ci-ts-build-check.yaml index 76da727..fe7e246 100644 --- a/.github/workflows/ci-ts-build-check.yaml +++ b/.github/workflows/ci-ts-build-check.yaml @@ -1,4 +1,4 @@ -name: CI - ts build check +name: CI - TypeScript build check on: pull_request: diff --git a/package.json b/package.json index e75c21c..73fd898 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "test-typings-check": "tsc --noEmit -p ./spec/tsconfig.json", "build": "rm -rf ./dist && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && tsx ./scripts/set-module-type-in-dist-builds.ts", "build-check": "tsc --noEmit -p ./tsconfig.json", - "prepack": "npm run build" + "prepack": "pnpm run build" }, "peerDependencies": { "react": ">=17"