Skip to content

Commit

Permalink
feat(resolves #17): Use newer flagscript cicd framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Kaestle committed Aug 23, 2024
1 parent 0c831fd commit cbf286d
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 22 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: release
on:
push:
branches:
- main

jobs:
main:
runs-on: ubuntu-latest
environment:
name: release #your environment name
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,6 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/osx,node,linux,windows,visualstudiocode,terraform

# Custom
.commit
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# echo "Generating pre-commit flag"
# touch .commit
terraform fmt -check
19 changes: 0 additions & 19 deletions .prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
]
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "CHANGELOG.md",
"label": "CHANGELOG"
}
]
}
]
]
}
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "terraform-aws-flagscript-organization",
"description": "Flagscript structured organization and account setup modules adhering to reasonable aws standards.",
"main": "index.js",
"scripts": {
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "git+https://github.com/flagscript/terraform-aws-flagscript-organization.git"
},
"keywords": [
"flagscript",
"aws",
"terraform",
"kms"
],
"author": {
"name": "Greg Kaestle",
"email": "[email protected]"
},
"license": "ISC",
"bugs": {
"url": "https://github.com/flagscript/terraform-aws-flagscript-organization/issues"
},
"homepage": "https://github.com/flagscript/terraform-aws-flagscript-organization#readme",
"dependencies": {
"husky": "^9.1.5"
}
}
24 changes: 24 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbf286d

Please sign in to comment.