diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87ee2ee..e7b7f47 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: Release -on: push - # push: -# branches: -# - master +on: + push: + branches: + - main jobs: release: name: Release @@ -15,10 +15,10 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: 'lts/*' + node-version: "lts/*" - name: Install dependencies run: npm ci - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npx semantic-release \ No newline at end of file + run: npx semantic-release diff --git a/.releaserc.json b/.releaserc.json index 2cb1233..46cb365 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,5 +1,5 @@ { - "branches": ["main", "1-setting-individual-terraform-rules-compared-to-using-terraform-plugin-with-recommended-settings"], + "branches": ["main"], "plugins": [ [ "@semantic-release/changelog", @@ -13,8 +13,8 @@ "@semantic-release/github", { "assets": [ - { "path": "tflint.hcl", "label": ".tflint.hcl" }, - { "path": "tflint-all.hcl", "label": ".tflint-all.hcl" } + { "path": ".tflint.hcl", "label": ".tflint.hcl" }, + { "path": ".tflint-all.hcl", "label": ".tflint-all.hcl" } ] } ], diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 9b74d1a..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,12 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# 1.0.0 (2022-12-15) - - -### Features - -* add changelog generation ([a5ac0d7](https://github.com/globaldatanet/tflint-config/commit/a5ac0d7fb2d594a1657dc3f52616996336a45ac8)) -* restructure rules used and simplify tflint config ([6caae61](https://github.com/globaldatanet/tflint-config/commit/6caae6147d3054dd4b31e2db580ea3df34edbd81)) diff --git a/README.md b/README.md index 98d4499..bdec021 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,7 @@ The Terraform rules can be found on [GitHub](https://github.com/terraform-linter - **[terraform_naming_convention]()** Enforces naming conventions for resources, data sources, etc - **[terraform_standard_module_structure]()** Ensure that a module complies with the Terraform Standard Module Structure - **[terraform_unused_required_providers]()** Check that all `required_providers` are used in the module + +## Contribution +Contribution is welcome. Please use [conventional commit](https://www.conventionalcommits.org) messages for your commits and pull request titles. +Through GitHub Actions the CHANGELOG gets updated, tag created and release published with the TFLint configuration files as assets. \ No newline at end of file