From 9e31d1e0ad36ad1f738323e8043dfc3a8364432c Mon Sep 17 00:00:00 2001 From: Kirill Timchenko <49305219+adjsky@users.noreply.github.com> Date: Thu, 31 Oct 2024 21:20:24 +0300 Subject: [PATCH] fix: publish action (#30) --- .github/workflows/publish.yml | 2 ++ publish_npm.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0c7ffc..9cd9d04 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,4 +30,6 @@ jobs: run: deno publish - name: Publish to NPM + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: deno run -A ./publish_npm.ts diff --git a/publish_npm.ts b/publish_npm.ts index 5087846..d826382 100644 --- a/publish_npm.ts +++ b/publish_npm.ts @@ -3,5 +3,5 @@ import { $ } from "@david/dax"; for (const cwd of denoJson.workspace) { await $`cd ${cwd} && deno run -A ./build_npm.ts`; - await $`npm publish ${cwd}/npm`; + await $`cd ${cwd}/npm && npm publish`; }