Skip to content

Commit 4353ea6

Browse files
Remove install script for Node (#13)
As per pulumi/pulumi#13800 (Pulumi v3.80.x ff), we no longer support extra runtime install scripts in the Node SDK. This pull request removes that logic during publishing. This change will go into effect when updating this Action in pulumi/ci-mgmt. Part of #12 .
2 parents dea9ec2 + 0bb40a6 commit 4353ea6

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

action.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -52,35 +52,6 @@ runs:
5252
shell: bash
5353
env:
5454
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}
55-
- name: Add Node scripts.sh
56-
# TODO: https://github.com/pulumi/pulumi/issues/13195 Move this hotfix to the Pulumi CLI.
57-
if: inputs.sdk == 'nodejs' || inputs.sdk == 'all'
58-
run: |
59-
mkdir -p ${{ github.workspace }}/sdk/nodejs/bin/scripts
60-
cat << 'EOF' > ${{ github.workspace }}/sdk/nodejs/bin/scripts/install-pulumi-plugin.js
61-
"use strict";
62-
var childProcess = require("child_process");
63-
64-
var args = process.argv.slice(2);
65-
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
66-
stdio: ["ignore", "inherit", "inherit"]
67-
});
68-
69-
if (res.error && res.error.code === "ENOENT") {
70-
console.error("\nThere was an error installing the resource provider plugin. " +
71-
"It looks like `pulumi` is not installed on your system. " +
72-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
73-
"You may try manually installing the plugin by running " +
74-
"`pulumi plugin install " + args.join(" ") + "`");
75-
} else if (res.error || res.status !== 0) {
76-
console.error("\nThere was an error installing the resource provider plugin. " +
77-
"You may try to manually installing the plugin by running " +
78-
"`pulumi plugin install " + args.join(" ") + "`");
79-
}
80-
81-
process.exit(0);
82-
EOF
83-
shell: bash
8455
- name: Publish Node
8556
if: inputs.sdk == 'nodejs' || inputs.sdk == 'all'
8657
run: pulumi package publish-sdk nodejs --path ${{ github.workspace }}/sdk/nodejs/bin

0 commit comments

Comments
 (0)