Skip to content

Commit d27fa8c

Browse files
feat: add semantic-release workflow
1 parent 92e4273 commit d27fa8c

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Semantic-Release"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Semantic Release
14+
uses: cycjimmy/semantic-release-action@v3
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "terraform-aws-state-storage",
3+
"license": "MIT",
4+
"devDependencies": {
5+
"@semantic-release/github": "^8.0.7",
6+
"git-cz": "^4.9.0",
7+
"semantic-release": "^19.0.5"
8+
},
9+
"private": true,
10+
"release": {
11+
"plugins": [
12+
"@semantic-release/commit-analyzer",
13+
"@semantic-release/release-notes-generator",
14+
"@semantic-release/github",
15+
[
16+
"@semantic-release/npm",
17+
{
18+
"npmPublish": false
19+
}
20+
]
21+
],
22+
"branches": [
23+
"main"
24+
]
25+
}
26+
}

0 commit comments

Comments
 (0)