From 829578e4906ca77fbdfdf4e53d84d032cb1bd2e4 Mon Sep 17 00:00:00 2001 From: Alvaro Saburido Date: Mon, 19 Aug 2024 16:11:55 +0200 Subject: [PATCH] ci: add pkg.pr.new (#802) * ci: add pkg.pr.new * chore: removed dev dep since `pnpx` is used --- .github/workflows/pkg.pr.new.yml | 33 ++++++++++++++++++++++++++++++++ pnpm-lock.yaml | 12 ++++++------ 2 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/pkg.pr.new.yml diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml new file mode 100644 index 000000000..e74bc37f9 --- /dev/null +++ b/.github/workflows/pkg.pr.new.yml @@ -0,0 +1,33 @@ +name: Publish Any Commit +on: + pull_request: + push: + branches: + - '**' + tags: + - '!**' + +env: + PNPM_CACHE_FOLDER: .pnpm-store + HUSKY: 0 # Bypass husky commit hook for CI + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + - run: pnpx pkg-pr-new publish \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b13a3da0f..f35c29574 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,7 +26,7 @@ importers: version: 1.11.0 '@tresjs/cientos': specifier: 3.9.0 - version: 3.9.0(@tresjs/core@4.2.1(three@0.166.1)(vue@3.4.31(typescript@5.5.3)))(three@0.166.1)(tweakpane@4.0.4)(vue@3.4.31(typescript@5.5.3)) + version: 3.9.0(@tresjs/core@4.2.6(three@0.166.1)(vue@3.4.31(typescript@5.5.3)))(three@0.166.1)(tweakpane@4.0.4)(vue@3.4.31(typescript@5.5.3)) '@tresjs/eslint-config': specifier: ^1.1.0 version: 1.1.0(@vue/compiler-sfc@3.4.31)(eslint@9.6.0)(typescript@5.5.3)(vitest@2.0.2(@types/node@20.14.10)(@vitest/ui@2.0.2)(jsdom@24.1.0)) @@ -1402,8 +1402,8 @@ packages: three: '>=0.133' vue: '>=3.3' - '@tresjs/core@4.2.1': - resolution: {integrity: sha512-sgjidv+2QA6FPerXgbLslicIuxNCJrSkTcZ2RJFWJ7mVWir8LtVs8CpSJLDVJwuhmjNwn9IIFl2WH94H8xgy4Q==} + '@tresjs/core@4.2.6': + resolution: {integrity: sha512-z6Z49rr1vkzHR/yMf2ZA8UvWddYwBIQ6zinrSyacrt3UsayrETvjyZOUESqcX/Up3C8U7//fpA8rGSfL3G3YKw==} peerDependencies: three: '>=0.133' vue: '>=3.4' @@ -6355,9 +6355,9 @@ snapshots: - '@vue/composition-api' - react - '@tresjs/cientos@3.9.0(@tresjs/core@4.2.1(three@0.166.1)(vue@3.4.31(typescript@5.5.3)))(three@0.166.1)(tweakpane@4.0.4)(vue@3.4.31(typescript@5.5.3))': + '@tresjs/cientos@3.9.0(@tresjs/core@4.2.6(three@0.166.1)(vue@3.4.31(typescript@5.5.3)))(three@0.166.1)(tweakpane@4.0.4)(vue@3.4.31(typescript@5.5.3))': dependencies: - '@tresjs/core': 4.2.1(three@0.166.1)(vue@3.4.31(typescript@5.5.3)) + '@tresjs/core': 4.2.6(three@0.166.1)(vue@3.4.31(typescript@5.5.3)) '@vueuse/core': 10.11.0(vue@3.4.31(typescript@5.5.3)) camera-controls: 2.8.3(three@0.166.1) stats-gl: 2.2.8 @@ -6381,7 +6381,7 @@ snapshots: transitivePeerDependencies: - '@vue/composition-api' - '@tresjs/core@4.2.1(three@0.166.1)(vue@3.4.31(typescript@5.5.3))': + '@tresjs/core@4.2.6(three@0.166.1)(vue@3.4.31(typescript@5.5.3))': dependencies: '@alvarosabu/utils': 3.2.0 '@vue/devtools-api': 6.6.3