diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml new file mode 100644 index 0000000..e6404bb --- /dev/null +++ b/.github/workflows/semantic-release.yml @@ -0,0 +1,17 @@ +name: "Semantic-Release" +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json new file mode 100644 index 0000000..ba0a5bb --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "terraform-aws-state-storage", + "license": "MIT", + "devDependencies": { + "@semantic-release/github": "^8.0.7", + "git-cz": "^4.9.0", + "semantic-release": "^19.0.5" + }, + "private": true, + "release": { + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github", + [ + "@semantic-release/npm", + { + "npmPublish": false + } + ] + ], + "branches": [ + "main" + ] + } +}