Skip to content

Commit

Permalink
feat: add semantic-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenMakandra committed Sep 25, 2024
1 parent 92e4273 commit d27fa8c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Semantic-Release"

Check failure on line 1 in .github/workflows/semantic-release.yml

View workflow job for this annotation

GitHub Actions / scan

CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
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 }}
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}

0 comments on commit d27fa8c

Please sign in to comment.