Skip to content

Commit

Permalink
feat(peer): ensure yarn is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Jan 12, 2023
1 parent 18769e5 commit 81cdcda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ci-deno.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ deno run \
--no-check=remote \
--allow-net \
--allow-env="GITHUB_TOKEN" \
--allow-run=yarn \
--allow-run=yarn,npm \
scripts/deno/peer-dependencies.ts
13 changes: 13 additions & 0 deletions scripts/deno/peer-dependencies.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import { octokit } from './github.ts';

const installYarn = async () => {
const process = Deno.run({
cmd: ['npm', 'install', '--global', 'yarn'],
stdout: 'null',
stderr: 'piped',
});

const { code } = await process.status();
if (code !== 0) Deno.exit(code);
};

await installYarn();

const peers = async (cwd: string) => {
const process = Deno.run({
cwd,
Expand Down

0 comments on commit 81cdcda

Please sign in to comment.