Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: CI

on:
pull_request:
push:
branches: main

jobs:
generate:
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,32 @@ name: Release

on:
push:
branches: main
branches:
- main
- rc/*

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- id: tag
uses: freckle/haskell-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.FRECKLE_AUTOMATION_APP_ID }}
private-key: ${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }}

- if: steps.tag.outputs.tag
uses: freckle/stack-upload-action@v2
- id: release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
conventional-changelog-conventionalcommits
semantic-release-stack-upload
env:
HACKAGE_API_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
FORCE_COLOR: 1
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
STACK_YAML: stack-lts-14.27.yaml
17 changes: 17 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
tagFormat: "v0.${version}" # PVP prefixed

plugins:
- - "@semantic-release/commit-analyzer"
- preset: "conventionalcommits"
- "@semantic-release/release-notes-generator"
- - "@semantic-release/github"
- successCommentCondition: false
failCommentCondition: false
- - "semantic-release-stack-upload"
- pvpBounds: lower
stripSuffix: true

branches:
- main
- name: rc/*
prerelease: '${name.replace(/^rc\//, "rc-")}'
18 changes: 1 addition & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
## [_Unreleased_](https://github.com/freckle/cfn-flip/compare/v0.1.0.3...main)

## [v0.1.0.3](https://github.com/freckle/cfn-flip/compare/v0.1.0.2...v0.1.0.3)

- Fix mis-handling of `Condition` property

## [v0.1.0.1](https://github.com/freckle/cfn-flip/compare/v0.1.0.1...v0.1.0.2)

- Support GHCs 9.0 and 9.2

## [v0.1.0.1](https://github.com/freckle/cfn-flip/compare/v0.1.0.0...v0.1.0.1)

- Fix package manifest.

## [v0.1.0.0](https://github.com/freckle/cfn-flip/tree/v0.1.0.0)

Initial release.
See https://github.com/freckle/cfn-lint/releases
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ Pure Haskell implementation of [cfn-flip][].

See [CfnFlip.hs](./src/CfnFlip.hs).

## Release

To release a new version of this library, push a commit to `main` using a
[conventionally-formatted][conventionalcommmits] commit message.

- Prefix with `fix:` to release a new patch version,
- Prefix with `feat:` to release a new minor version, or
- Use `<type>!:` or a `BREAKING CHANGE:` footer to release a new major version

[conventionalcommmits]: https://www.conventionalcommits.org/en/v1.0.0/

---

[LICENSE](./LICENSE) | [CHANGELOG](./CHANGELOG.md)
4 changes: 2 additions & 2 deletions cfn-flip.cabal
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
cabal-version: 1.18

-- This file has been generated from package.yaml by hpack version 0.35.0.
-- This file has been generated from package.yaml by hpack version 0.38.0.
--
-- see: https://github.com/sol/hpack

name: cfn-flip
version: 0.1.0.3
version: 0.0.0.0
synopsis: Haskell implementation of aws/cfn-flip
description: Functions to flip between CloudFormation Yaml and JSON syntaxes
category: Tools
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cfn-flip
version: 0.1.0.3
version: 0.0.0.0 # maintained by semantic-release
github: "freckle/cfn-flip"
license: MIT
author: "Freckle R&D"
Expand Down
Loading