From 0c777e0582e5e644b4d2ddcf6275460e70593344 Mon Sep 17 00:00:00 2001 From: Morgan Dean Date: Wed, 2 Jul 2025 11:18:32 -0700 Subject: [PATCH] Fix action issues with typescript libs, warnings on core lib --- .github/workflows/npm-publish-computer.yml | 7 ++++--- .github/workflows/npm-publish-core.yml | 7 ++++--- libs/typescript/core/tsdown.config.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm-publish-computer.yml b/.github/workflows/npm-publish-computer.yml index 328378d7..e2949f4c 100644 --- a/.github/workflows/npm-publish-computer.yml +++ b/.github/workflows/npm-publish-computer.yml @@ -22,14 +22,15 @@ jobs: - name: Install dependencies working-directory: ./libs/typescript/computer - run: npm ci + run: pnpm install --frozen-lockfile - name: Build package working-directory: ./libs/typescript/computer - run: npm run build --if-present + run: pnpm run build --if-present - name: Publish to npm working-directory: ./libs/typescript/computer - run: npm publish --provenance --access public + run: pnpm publish --access public --no-git-checks env: + NPM_CONFIG_PROVENANCE: true NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/npm-publish-core.yml b/.github/workflows/npm-publish-core.yml index dc06628d..3f02f8f2 100644 --- a/.github/workflows/npm-publish-core.yml +++ b/.github/workflows/npm-publish-core.yml @@ -22,14 +22,15 @@ jobs: - name: Install dependencies working-directory: ./libs/typescript/core - run: npm ci + run: pnpm install --frozen-lockfile - name: Build package working-directory: ./libs/typescript/core - run: npm run build --if-present + run: pnpm run build --if-present - name: Publish to npm working-directory: ./libs/typescript/core - run: npm publish --provenance --access public + run: pnpm publish --access public --no-git-checks env: + NPM_CONFIG_PROVENANCE: true NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/libs/typescript/core/tsdown.config.ts b/libs/typescript/core/tsdown.config.ts index 21d62816..36743757 100644 --- a/libs/typescript/core/tsdown.config.ts +++ b/libs/typescript/core/tsdown.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'tsdown'; export default defineConfig([ { entry: ['./src/index.ts'], - platform: 'neutral', + platform: 'node', dts: true, }, ]);