Skip to content

Commit

Permalink
fix: publish action (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
adjsky authored Oct 31, 2024
1 parent d1ac3ae commit 9e31d1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion publish_npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}

0 comments on commit 9e31d1e

Please sign in to comment.