From 349456eeb63a7bc3352bc7db1ca07a63973863ee Mon Sep 17 00:00:00 2001 From: Hugo Meyronneinc Date: Tue, 1 Nov 2022 15:11:47 +0100 Subject: [PATCH] 1.0. --- Makefile | 2 +- deployment-templates/README-DEPLOYMENT.md | 28 --------------------- provider/pkg/version/version.go | 2 +- schema.yaml | 3 +++ sdk/nodejs/package.json | 6 ++--- sdk/nodejs/scripts/install-pulumi-plugin.js | 2 +- 6 files changed, 9 insertions(+), 34 deletions(-) delete mode 100644 deployment-templates/README-DEPLOYMENT.md diff --git a/Makefile b/Makefile index 689f149..dc96e26 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := 1.0.6 +VERSION := 1.0.7 PACK := libp2p PROJECT := github.com/LuxChanLu/pulumi-${PACK} diff --git a/deployment-templates/README-DEPLOYMENT.md b/deployment-templates/README-DEPLOYMENT.md deleted file mode 100644 index 37e350f..0000000 --- a/deployment-templates/README-DEPLOYMENT.md +++ /dev/null @@ -1,28 +0,0 @@ -# Configure - -1. Create a directory at the root of your repo called .github/workflows - -1. Place the release.yml from this directory there - -1. Place the .goreleaser.yml from this directory at the root of your repo - -1. Obtain needed accounts and tokens from the language specific package managers you will use - -1. Add any needed tokens to the actions secrets for your repository or organization - -1. Customize the release.yml with the correct tokens using the format: - - `${{ secrets.MyTokenName }}` - -1. Customize .goreleaser.yml for your provider, replacing any instances of 'libp2p' with your provider's name, and paying special attention that the ldlflags are set to match your provider/go.mod exactly: - - `-X github.com/pulumi/pulumi-aws/provider/v5/pkg/version.Version={{.Tag}}` - -1. Delete this directory if desired - - -# Deploy - -1. Push a tag to your repo in the format "v0.0.0" to initiate a release - -1. IMPORTANT: also add a tag in the format "sdk/v0.0.0" for the Go SDK diff --git a/provider/pkg/version/version.go b/provider/pkg/version/version.go index 5db9327..c01b4a0 100644 --- a/provider/pkg/version/version.go +++ b/provider/pkg/version/version.go @@ -1,3 +1,3 @@ package version -var Version string = "1.0.6" +var Version string = "1.0.7" diff --git a/schema.yaml b/schema.yaml index 5eaf9cb..f6d4855 100644 --- a/schema.yaml +++ b/schema.yaml @@ -21,9 +21,11 @@ resources: type: enum $ref: "#/types/libp2p:index:KeyType" description: Type of the key to generate one of RSA, ED25519, SECP256K1, ECDSA + replaceOnChanges: true bits: type: integer description: Siye of the key (Only for RSA key) + replaceOnChanges: true requiredInputs: - type properties: @@ -50,6 +52,7 @@ language: importBasePath: github.com/LuxChanLu/pulumi-libp2p/sdk/go/libp2p nodejs: dependencies: + "@pulumi/pulumi": "^3.45.0" devDependencies: typescript: "^3.7.0" python: diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 66855d9..c5f8341 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -5,12 +5,12 @@ "build": "tsc", "install": "node scripts/install-pulumi-plugin.js resource libp2p ${VERSION}" }, + "dependencies": { + "@pulumi/pulumi": "^3.45.0" + }, "devDependencies": { "typescript": "^3.7.0" }, - "peerDependencies": { - "@pulumi/pulumi": "latest" - }, "pulumi": { "resource": true } diff --git a/sdk/nodejs/scripts/install-pulumi-plugin.js b/sdk/nodejs/scripts/install-pulumi-plugin.js index fefc6e0..59b40f0 100644 --- a/sdk/nodejs/scripts/install-pulumi-plugin.js +++ b/sdk/nodejs/scripts/install-pulumi-plugin.js @@ -7,7 +7,7 @@ if (args.indexOf("${VERSION}") !== -1) { process.exit(0); } -var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), { +var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/LuxChanLu"].concat(args), { stdio: ["ignore", "inherit", "inherit"] });