Skip to content

Commit

Permalink
Remove runfiles from program.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed May 31, 2023
1 parent 989ad6e commit 535abc0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions deploy/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/

import { context as githubCtx, getOctokit } from '@actions/github';
import { runfiles } from '@bazel/runfiles';
import { UpResult } from '@pulumi/pulumi/automation';
import child_process from 'child_process';
import { Command } from 'commander';
Expand Down Expand Up @@ -52,10 +51,7 @@ const artifact =
filename,
buildTag,
publish: async ({ publish }: Context) =>
await publish(
filename,
await fs.readFile(runfiles.resolveWorkspaceRelative(buildTag))
),
await publish(filename, await fs.readFile(buildTag)),
});

interface PulumiDeployInfo {
Expand Down Expand Up @@ -112,9 +108,7 @@ const npmPackage =
console.error(
"Missing NPM_TOKEN. We won't be able to publish any NPM packages."
);
return void (await exec(
runfiles.resolveWorkspaceRelative(buildTag)
));
return void (await exec(buildTag));
},
};
};
Expand Down Expand Up @@ -396,11 +390,7 @@ export const program = ({
: memo(() => getOctokit(process.env['GITHUB_TOKEN']!));

const version = (
await fs.readFile(
runfiles.resolveWorkspaceRelative(
'VERSION/VERSION.version.txt'
)
)
await fs.readFile('VERSION/VERSION.version.txt')
).toString('utf-8');

const releaser = release(
Expand Down

0 comments on commit 535abc0

Please sign in to comment.