From 82a2d59c14f332e0456cae67444a0e70882171d2 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 23 Jan 2024 14:20:00 +0300 Subject: [PATCH] chore: bump version to 1.0.1 and add script to update them automatically. --- .sample/README.md | 8 ++++---- README.md | 2 +- aws-region/README.md | 6 +++--- azure-region/README.md | 6 +++--- code-server/README.md | 14 +++++++------- coder-login/README.md | 2 +- dotfiles/README.md | 2 +- exoscale-instance-type/README.md | 6 +++--- exoscale-zone/README.md | 6 +++--- filebrowser/README.md | 6 +++--- fly-region/README.md | 6 +++--- gcp-region/README.md | 8 ++++---- git-clone/README.md | 4 ++-- git-commit-signing/README.md | 2 +- git-config/README.md | 6 +++--- jetbrains-gateway/README.md | 4 ++-- jfrog-oauth/README.md | 6 +++--- jfrog-token/README.md | 6 +++--- jupyter-notebook/README.md | 2 +- jupyterlab/README.md | 2 +- package.json | 5 +++-- personalize/README.md | 2 +- slackme/README.md | 4 ++-- vault-github/README.md | 10 +++++----- vscode-desktop/README.md | 4 ++-- vscode-web/README.md | 4 ++-- 26 files changed, 67 insertions(+), 66 deletions(-) diff --git a/.sample/README.md b/.sample/README.md index f50a101..08408a1 100644 --- a/.sample/README.md +++ b/.sample/README.md @@ -14,7 +14,7 @@ tags: [helper] ```hcl module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" + version = "1.0.1" } ``` @@ -29,7 +29,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/): ```hcl module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula" @@ -46,7 +46,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte ```hcl module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula" ] settings = { @@ -62,7 +62,7 @@ Run code-server in the background, don't fetch it from GitHub: ```hcl module "MODULE_NAME" { source = "registry.coder.com/modules/MODULE_NAME/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id offline = true } diff --git a/README.md b/README.md index 522477b..6f5158f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ e.g. ```hcl module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.main.id } ``` diff --git a/aws-region/README.md b/aws-region/README.md index 824d7d9..4c701d7 100644 --- a/aws-region/README.md +++ b/aws-region/README.md @@ -17,7 +17,7 @@ Customize the preselected parameter value: ```hcl module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.0" + version = "1.0.1" default = "us-east-1" } @@ -37,7 +37,7 @@ Change the display name and icon for a region using the corresponding maps: ```hcl module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.0" + version = "1.0.1" default = "ap-south-1" custom_names = { "ap-south-1": "Awesome Mumbai!" @@ -61,7 +61,7 @@ Hide the Asia Pacific regions Seoul and Osaka: ```hcl module "aws-region" { source = "registry.coder.com/modules/aws-region/coder" - version = "1.0.0" + version = "1.0.1" exclude = [ "ap-northeast-2", "ap-northeast-3" ] } diff --git a/azure-region/README.md b/azure-region/README.md index b22dedf..512b823 100644 --- a/azure-region/README.md +++ b/azure-region/README.md @@ -14,7 +14,7 @@ This module adds a parameter with all Azure regions, allowing developers to sele ```hcl module "azure_region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.0" + version = "1.0.1" default = "eastus" } @@ -34,7 +34,7 @@ Change the display name and icon for a region using the corresponding maps: ```hcl module "azure-region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.0" + version = "1.0.1" custom_names = { "australia": "Go Australia!" } @@ -57,7 +57,7 @@ Hide all regions in Australia except australiacentral: ```hcl module "azure-region" { source = "registry.coder.com/modules/azure-region/coder" - version = "1.0.0" + version = "1.0.1" exclude = [ "australia", "australiacentral2", diff --git a/code-server/README.md b/code-server/README.md index 9bc0417..9123112 100644 --- a/code-server/README.md +++ b/code-server/README.md @@ -14,7 +14,7 @@ Automatically install [code-server](https://github.com/coder/code-server) in a w ```hcl module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` @@ -28,9 +28,9 @@ module "code-server" { ```hcl module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id - install_version = "4.8.3" + install_version = "1.0.1" } ``` @@ -41,7 +41,7 @@ Install the Dracula theme from [OpenVSX](https://open-vsx.org/): ```hcl module "code-server" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula" @@ -58,7 +58,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte ```hcl module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula" ] settings = { @@ -74,7 +74,7 @@ Just run code-server in the background, don't fetch it from GitHub: ```hcl module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ] } @@ -87,7 +87,7 @@ Just run code-server in the background, don't fetch it from GitHub: ```hcl module "settings" { source = "registry.coder.com/modules/code-server/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id offline = true } diff --git a/coder-login/README.md b/coder-login/README.md index 0c5f8d9..bbbe22b 100644 --- a/coder-login/README.md +++ b/coder-login/README.md @@ -14,7 +14,7 @@ Automatically logs the user into Coder when creating their workspace. ```hcl module "coder-login" { source = "registry.coder.com/modules/coder-login/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` diff --git a/dotfiles/README.md b/dotfiles/README.md index 1383c09..5f9129f 100644 --- a/dotfiles/README.md +++ b/dotfiles/README.md @@ -14,7 +14,7 @@ Allow developers to optionally bring their own [dotfiles repository](https://dot ```hcl module "dotfiles" { source = "registry.coder.com/modules/dotfiles/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` diff --git a/exoscale-instance-type/README.md b/exoscale-instance-type/README.md index 4868c9f..3702617 100644 --- a/exoscale-instance-type/README.md +++ b/exoscale-instance-type/README.md @@ -17,7 +17,7 @@ Customize the preselected parameter value: ```hcl module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.0" + version = "1.0.1" default = "standard.medium" } @@ -45,7 +45,7 @@ Change the display name a type using the corresponding maps: ```hcl module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.0" + version = "1.0.1" default = "standard.medium" custom_names = { "standard.medium": "Mittlere Instanz" # German translation @@ -77,7 +77,7 @@ Show only gpu1 types ```hcl module "exoscale-instance-type" { source = "registry.coder.com/modules/exoscale-instance-type/coder" - version = "1.0.0" + version = "1.0.1" default = "gpu.large" type_category = ["gpu"] exclude = [ diff --git a/exoscale-zone/README.md b/exoscale-zone/README.md index 360c54b..b5cd45d 100644 --- a/exoscale-zone/README.md +++ b/exoscale-zone/README.md @@ -17,7 +17,7 @@ Customize the preselected parameter value: ```hcl module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.0" + version = "1.0.1" default = "ch-dk-2" } @@ -44,7 +44,7 @@ Change the display name and icon for a zone using the corresponding maps: ```hcl module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.0" + version = "1.0.1" default = "at-vie-1" custom_names = { "at-vie-1": "Home Vienna" @@ -74,7 +74,7 @@ Hide the Switzerland zones Geneva and Zurich ```hcl module "exoscale-zone" { source = "registry.coder.com/modules/exoscale-zone/coder" - version = "1.0.0" + version = "1.0.1" exclude = [ "ch-gva-2", "ch-dk-2" ] } diff --git a/filebrowser/README.md b/filebrowser/README.md index bde76f6..d7bd488 100644 --- a/filebrowser/README.md +++ b/filebrowser/README.md @@ -14,7 +14,7 @@ A file browser for your workspace. ```hcl module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ module "filebrowser" { ```hcl module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id folder = "/home/coder/project" } @@ -39,7 +39,7 @@ module "filebrowser" { ```hcl module "filebrowser" { source = "registry.coder.com/modules/filebrowser/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id database_path = ".config/filebrowser.db" } diff --git a/fly-region/README.md b/fly-region/README.md index 7e5040f..e9d5d32 100644 --- a/fly-region/README.md +++ b/fly-region/README.md @@ -16,7 +16,7 @@ We can use the simplest format here, only adding a default selection as the `atl ```hcl module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.0" + version = "1.0.1" default = "atl" } ``` @@ -32,7 +32,7 @@ The regions argument can be used to display only the desired regions in the Code ```hcl module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.0" + version = "1.0.1" default = "ams" regions = ["ams", "arn", "atl"] } @@ -47,7 +47,7 @@ Set custom icons and names with their respective maps. ```hcl module "fly-region" { source = "registry.coder.com/modules/fly-region/coder" - version = "1.0.0" + version = "1.0.1" default = "ams" custom_icons = { "ams" = "/emojis/1f90e.png" diff --git a/gcp-region/README.md b/gcp-region/README.md index a78ed41..a1abd0e 100644 --- a/gcp-region/README.md +++ b/gcp-region/README.md @@ -14,7 +14,7 @@ This module adds Google Cloud Platform regions to your Coder template. ```hcl module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.1" regions = ["us", "europe"] } @@ -34,7 +34,7 @@ Note: setting `gpu_only = true` and using a default region without GPU support, ```hcl module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.1" default = ["us-west1-a"] regions = ["us-west1"] gpu_only = false @@ -50,7 +50,7 @@ resource "google_compute_instance" "example" { ```hcl module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.1" regions = ["europe-west"] single_zone_per_region = false } @@ -65,7 +65,7 @@ resource "google_compute_instance" "example" { ```hcl module "gcp_region" { source = "registry.coder.com/modules/gcp-region/coder" - version = "1.0.0" + version = "1.0.1" regions = ["us", "europe"] gpu_only = true single_zone_per_region = true diff --git a/git-clone/README.md b/git-clone/README.md index db4ce5f..716a225 100644 --- a/git-clone/README.md +++ b/git-clone/README.md @@ -14,7 +14,7 @@ This module allows you to automatically clone a repository by URL and skip if it ```hcl module "git-clone" { source = "registry.coder.com/modules/git-clone/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id url = "https://github.com/coder/coder" } @@ -35,7 +35,7 @@ data "coder_git_auth" "github" { ```hcl module "git-clone" { source = "registry.coder.com/modules/git-clone/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id url = "https://github.com/coder/coder" path = "~/projects/coder/coder" diff --git a/git-commit-signing/README.md b/git-commit-signing/README.md index c13e1f8..4499839 100644 --- a/git-commit-signing/README.md +++ b/git-commit-signing/README.md @@ -19,7 +19,7 @@ This module has a chance of conflicting with the user's dotfiles / the personali ```hcl module "git-commit-signing" { source = "registry.coder.com/modules/git-commit-signing/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` diff --git a/git-config/README.md b/git-config/README.md index 6c9d696..5a94a61 100644 --- a/git-config/README.md +++ b/git-config/README.md @@ -14,7 +14,7 @@ Runs a script that updates git credentials in the workspace to match the user's ```hcl module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` @@ -28,7 +28,7 @@ TODO: Add screenshot ```hcl module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id allow_email_change = true } @@ -41,7 +41,7 @@ TODO: Add screenshot ```hcl module "git-config" { source = "registry.coder.com/modules/git-config/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id allow_username_change = false allow_email_change = false diff --git a/jetbrains-gateway/README.md b/jetbrains-gateway/README.md index c6c473d..667ed55 100644 --- a/jetbrains-gateway/README.md +++ b/jetbrains-gateway/README.md @@ -14,7 +14,7 @@ This module adds a JetBrains Gateway Button to open any workspace with a single ```hcl module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id folder = "/home/coder/example" jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM"] @@ -31,7 +31,7 @@ module "jetbrains_gateway" { ```hcl module "jetbrains_gateway" { source = "registry.coder.com/modules/jetbrains-gateway/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id folder = "/home/coder/example" jetbrains_ides = ["GO", "WS"] diff --git a/jfrog-oauth/README.md b/jfrog-oauth/README.md index f81d837..7c7af51 100644 --- a/jfrog-oauth/README.md +++ b/jfrog-oauth/README.md @@ -19,7 +19,7 @@ Install the JF CLI and authenticate package managers with Artifactory using OAut ```hcl module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id jfrog_url = "https://jfrog.example.com" username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username" @@ -87,7 +87,7 @@ Configure the Python pip package manager to fetch packages from Artifactory whil ```hcl module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id jfrog_url = "https://jfrog.example.com" auth_method = "oauth" @@ -115,7 +115,7 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio ```hcl module "jfrog" { source = "registry.coder.com/modules/jfrog-oauth/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id jfrog_url = "https://jfrog.example.com" username_field = "username" # If you are using GitHub to login to both Coder and Artifactory, use username_field = "username" diff --git a/jfrog-token/README.md b/jfrog-token/README.md index 2cba7ad..3158ed2 100644 --- a/jfrog-token/README.md +++ b/jfrog-token/README.md @@ -15,7 +15,7 @@ Install the JF CLI and authenticate package managers with Artifactory using Arti ```hcl module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id jfrog_url = "https://XXXX.jfrog.io" artifactory_access_token = var.artifactory_access_token @@ -48,7 +48,7 @@ variable "artifactory_access_token" { ```hcl module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id jfrog_url = "https://YYYY.jfrog.io" artifactory_access_token = var.artifactory_access_token # An admin access token @@ -81,7 +81,7 @@ The [JFrog extension](https://open-vsx.org/extension/JFrog/jfrog-vscode-extensio ```hcl module "jfrog" { source = "registry.coder.com/modules/jfrog-token/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id jfrog_url = "https://XXXX.jfrog.io" artifactory_access_token = var.artifactory_access_token diff --git a/jupyter-notebook/README.md b/jupyter-notebook/README.md index 69b6176..830b19a 100644 --- a/jupyter-notebook/README.md +++ b/jupyter-notebook/README.md @@ -16,7 +16,7 @@ A module that adds Jupyter Notebook in your Coder template. ```hcl module "jupyter-notebook" { source = "registry.coder.com/modules/jupyter-notebook/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` diff --git a/jupyterlab/README.md b/jupyterlab/README.md index 8984da2..80046b5 100644 --- a/jupyterlab/README.md +++ b/jupyterlab/README.md @@ -16,7 +16,7 @@ A module that adds JupyterLab in your Coder template. ```hcl module "jupyterlab" { source = "registry.coder.com/modules/jupyterlab/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` diff --git a/package.json b/package.json index d374122..7bd46ef 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "test": "bun test", "fmt": "bun x prettier --plugin prettier-plugin-sh -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf", "fmt:ci": "bun x prettier --plugin prettier-plugin-sh --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf", - "lint": "bun run lint.ts" + "lint": "bun run lint.ts", + "update-version": "LATEST_TAG=$(git describe --abbrev=0 --tags | sed 's/^v//') && find . -name 'README.md' -exec sed -i \"s/version\\s*=\\s*\\\"[0-9]*\\.[0-9]*\\.[0-9]*\\\"/version = \\\"$LATEST_TAG\\\"/g\" {} \\;" }, "devDependencies": { "bun-types": "^1.0.18", @@ -15,4 +16,4 @@ "peerDependencies": { "typescript": "^5.3.3" } -} +} \ No newline at end of file diff --git a/personalize/README.md b/personalize/README.md index 4ddb036..322a3eb 100644 --- a/personalize/README.md +++ b/personalize/README.md @@ -14,7 +14,7 @@ Run a script on workspace start that allows developers to run custom commands to ```hcl module "personalize" { source = "registry.coder.com/modules/personalize/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id } ``` diff --git a/slackme/README.md b/slackme/README.md index 28b1f6a..26a38cc 100644 --- a/slackme/README.md +++ b/slackme/README.md @@ -57,7 +57,7 @@ slackme npm run long-build ```hcl module "slackme" { source = "registry.coder.com/modules/slackme/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id auth_provider_id = "slack" } @@ -73,7 +73,7 @@ slackme npm run long-build ```hcl module "slackme" { source = "registry.coder.com/modules/slackme/coder" - version = "1.0.0" + version = "1.0.1" agent_id = coder_agent.example.id auth_provider_id = "slack" slack_message = <