Skip to content

Commit

Permalink
Automate release process (#36)
Browse files Browse the repository at this point in the history
* build: Generate changelog

* Update version script

* Automate Release process
  • Loading branch information
PKief authored Jan 26, 2022
1 parent 408a66f commit f1b9727
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 70 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Release + Publish

on:
workflow_dispatch:
inputs:
versionChange:
type: choice
description: Select the version change
requried: true
options:
- major
- minor
- patch

jobs:
release:
runs-on: ubuntu-latest
env:
VERSION_CHANGE: ${{ github.event.inputs.versionChange }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js ⚙️
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install node_modules 📦
run: |
npm install
npm install --global vsce
- name: Update version ↗
run: |
git config --global user.name 'Philipp Kief'
git config --global user.email 'PKief@users.noreply.github.com'
git config --global push.followTags true
npm version ${{ env.VERSION_CHANGE }}
- name: Get meta data 🔍
run: |
NODE_VERSION=$(node -p -e "require('./package.json').version")
echo VERSION=$NODE_VERSION >> $GITHUB_ENV
NODE_NAME=$(node -p -e "require('./package.json').name")
echo NAME=$NODE_NAME >> $GITHUB_ENV
NODE_DISPLAY_NAME=$(node -p -e "require('./package.json').displayName")
echo DISPLAY_NAME=$NODE_DISPLAY_NAME >> $GITHUB_ENV
- name: Build ⚒️
run: vsce package
- name: Push tags 📌
run: git push
- name: Release ${{ env.VERSION }} 🔆
uses: softprops/action-gh-release@v1
with:
files: ${{ env.NAME }}-${{ env.VERSION }}.vsix
tag_name: v${{ env.VERSION }}
name: ${{ env.DISPLAY_NAME }} v${{ env.VERSION }}
generate_release_notes: true
- name: Publish to Open VSX Registry 🌐
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: ${{ env.NAME }}-${{ env.VERSION }}.vsix
- name: Publish to Visual Studio Marketplace 🌐
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ env.NAME }}-${{ env.VERSION }}.vsix
175 changes: 105 additions & 70 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,116 +1,151 @@
# Change Log
### Changelog

## 1.7.2 (2021-08-17)
All notable changes to this project are documented in this file. Dates are displayed in UTC.

### Refactoring
#### [Unreleased](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.7.2...HEAD)

- Enable extension for GitHub Codespaces ([0b26388](https://github.com/PKief/vscode-markdown-checkbox/commit/0b26388cdc57874224ce5c76911fcadfa6870b56))

## 1.7.1 (2021-02-14)

### Bug Fixes
- Reafctor/strict type checking [`#34`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/34)
- Implement Toggle create checkbox [`#33`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/33)
- Add support for creating checkboxes on selected lines [`#31`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/31)
- Bump path-parse from 1.0.6 to 1.0.7 [`#29`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/29)
- Use ESLint and Prettier for better Code Quality [`7f47fd5`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/7f47fd59267886b6eff5429f2cc596425cd65a01)
- Fix linting errors [`9e59451`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/9e59451373424d39cc5fc5f6c7924e3662bd83d5)
- Add unit test for removal of already existing checkboxes (Related to #22) [`408a66f`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/408a66ff1f4518e8bd3d01cccf7573c05b587800)
- Rename master branch to main [`58adea0`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/58adea0125f1c32e36fb9d88457a3e2364bfe466)
- Update build workflow [`9aee5a1`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/9aee5a18b4f62efddfe3f65b5ff2074da5923a9c)

- Date string regex matches to-do item description in certain scenarios ([issue #25](https://github.com/PKief/vscode-markdown-checkbox/issues/25))
#### [v1.7.2](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.7.1...v1.7.2)

## 1.7.0 (2020-04-29)
> 17 August 2021
### Features

- Configurable date format ([@PKief](https://github.com/PKief) in [#19](https://github.com/PKief/vscode-markdown-checkbox/pull/19))
- Bump glob-parent from 5.1.1 to 5.1.2 [`#27`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/27)
- Bump browserslist from 4.16.3 to 4.16.6 [`#26`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/26)
- Enable extension for GitHub codespaces [`0b26388`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/0b26388cdc57874224ce5c76911fcadfa6870b56)

### Refactoring
#### [v1.7.1](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.7.0...v1.7.1)

- Improve code quality ([f8086fc](https://github.com/PKief/vscode-markdown-checkbox/commit/f8086fce5bc99f0a2a4d06ea9758282d2efd5674))
- Fix launch configuration to run npm script compile:dev ([a45ad01](https://github.com/PKief/vscode-markdown-checkbox/commit/a45ad01c7718bd08770f85997260ab3ea1f83710))
> 14 February 2021
## 1.6.0 (2019-04-24)

### Features
- Bump ini from 1.3.5 to 1.3.7 [`#24`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/24)
- Bump elliptic from 6.5.2 to 6.5.3 [`#21`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/21)
- Bump lodash from 4.17.15 to 4.17.19 [`#20`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/20)
- Fix issue with toggling lines that contains brackets (except the date brackets) Fixes #25 [`#25`](https://github.com/PKief/vscode-extension-markdown-checkbox/issues/25)
- Update test setup [`1a95134`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/1a95134f82b6cff091fd13a99c4236f8cfee32ff)
- Update readme [`0077a25`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/0077a2508307fbdb3c9023cfa0052d5dfbbd7bef)
- Fix tests [`59b8152`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/59b8152e1521f8ae91b6c00d9c7ff2bfe5526594)
- Update CI pipeline [`5288504`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/5288504f544947cf4b78c9ccf08b27fb476bfa98)
- Update build yml [`364234d`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/364234dee9c8a002931b0574ce66527f81007d4e)
- Fix security vulnerability [`0aa3960`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/0aa396090146f10110774f2f54d6d96962233237)
- Update workflow file [`918ecf5`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/918ecf5785ef647a133867f3a3df528e2d468890)
- Update CI pipeline [`617bd75`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/617bd75e8e93f6a25a3be797d9a7ca0a90e3dfca)
- Update CI pipeline [`135245c`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/135245cee7bbb8839f8cd6ff833cd903eec2ac45)
- Add name to step in workflow [`bdc4121`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/bdc41211704e8c3b93ab6571d682fa368166b07f)
- Fix build yml [`49103e5`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/49103e57f4b769c5f1e7f45b9e848492877e359f)
- Update build.yml [`c8d0af1`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/c8d0af1751093639210c0ef85abf601229297f7d)

- Configurable checkmark ([@PKief](https://github.com/PKief) in [#14](https://github.com/PKief/vscode-markdown-checkbox/pull/14))
#### [v1.7.0](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.6.0...v1.7.0)

## 1.5.0 (2019-03-16)
> 29 April 2020
### Refactoring

- Bundle extension with webpack ([@PKief](https://github.com/PKief) in [#12](https://github.com/PKief/vscode-markdown-checkbox/pull/12))
- Reduces extension size by 35 %
- Faster extension startup activation
- CI Improvements
- Make date format configurable [`#19`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/19)
- Make date format configurable (Closes #15) [`#15`](https://github.com/PKief/vscode-extension-markdown-checkbox/issues/15)
- Fix security vulnerabilities [`b0936b7`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/b0936b7130ba4e05e05b7e9e2ea1eb134d344d58)
- Refactor code [`f8086fc`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/f8086fce5bc99f0a2a4d06ea9758282d2efd5674)
- Refactor code [`e0a66fc`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/e0a66fce933678fc0860a1a2a4655164e5834c45)
- Add documentation for date format (References #19 and #15) [`c0ee58b`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/c0ee58b3665bac6035fb12c7fb404faf83ecfdb1)
- Update launch configuration [`a45ad01`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/a45ad01c7718bd08770f85997260ab3ea1f83710)
- Add missing import [`333d0c7`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/333d0c70454c4f74e519f2979f82147cdb424158)

## 1.4.3 (2019-03-04)
#### [v1.6.0](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.5.0...v1.6.0)

### Bug Fixes
> 24 April 2019
- Respect trailing whitespace on toggle ([issue #11](https://github.com/PKief/vscode-markdown-checkbox/issues/11))

## 1.4.2 (2019-01-28)
- Added configurable checkbox marker (Closes #13) [`#14`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/14)
- Merge pull request #14 from PKief/configurableCheckboxMarker [`#13`](https://github.com/PKief/vscode-extension-markdown-checkbox/issues/13)
- Added configurable checkbox marker (Closes #13) [`#13`](https://github.com/PKief/vscode-extension-markdown-checkbox/issues/13)
- Improved toggling of checkboxes [`ebcdcde`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/ebcdcdee71d11fe28e39b117013bf4d7d30a2ab6)
- Refactored code [`d2f9ab9`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/d2f9ab963d9502ad9f40a06502c8768a4a2323a8)
- Improved uncheck of checkbox [`b0b812c`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/b0b812c5b1097a4da40567d8e76e7353ecd2658c)
- Updated readme [`a99b067`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/a99b067786d27eae8ef55c4413d01e5fae6d5685)

### Bug Fixes
#### [v1.5.0](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.4.3...v1.5.0)

- Fixed date timezone ([issue #10](https://github.com/PKief/vscode-markdown-checkbox/issues/10))
> 16 March 2019
## 1.4.1 (2018-11-27)

### Bug Fixes
- Bundle extension with webpack [`#12`](https://github.com/PKief/vscode-extension-markdown-checkbox/pull/12)
- Added CleanWebpackPlugin [`41d7125`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/41d712502fc32d333fcbe3d2aa5e4a55586c35e9)
- Improved npm scripts [`036971a`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/036971a122c858929a599fe725932cf434468549)
- Updated CI [`de73a64`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/de73a64d238a75d86b80a124f533f95d741f4d62)
- Fixed task configuration [`6fc7f75`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/6fc7f75925784b44e4aeb9f02f9f2d186f423c77)
- Updated travis-ci badge [`2a0aa42`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/2a0aa42ec54c6963f241fc5a7c2c94d1cb0aa0ba)
- Update vscodeignore [`9f74b4e`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/9f74b4e7740ee0e3d6e5161a166388ccaa52f0e2)
- Updated travis configuration [`ae80b97`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/ae80b97d887349628a43368b869f0f4be05d6eb2)
- Updated test script [`2975189`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/2975189a26eb5af30fd80765e52953f08c0f528e)

- Fixed security [issue](https://github.com/dominictarr/event-stream/issues/116) with event-stream dependency ([4e83234](https://github.com/PKief/vscode-markdown-checkbox/commit/4e83234))
#### [v1.4.3](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.4.2...v1.4.3)

## 1.4.0 (2018-10-28)
> 4 March 2019
### Features

- Specify multiple language IDs for which the extension is activated ([@reedspool](https://github.com/reedspool) in [#9](https://github.com/PKief/vscode-markdown-checkbox/pull/9))
- Respect trailing whitespace on toggle (Fixes #11) [`#11`](https://github.com/PKief/vscode-extension-markdown-checkbox/issues/11)
- Separated test files [`6e5648b`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/6e5648b3012d4190576ff7fb640f0b876034cece)

### Refactoring
#### [v1.4.2](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.4.1...v1.4.2)

- Improved code quality ([275d66d](https://github.com/PKief/vscode-markdown-checkbox/commit/275d66d))
- Updated tests ([6292b4a](https://github.com/PKief/vscode-markdown-checkbox/commit/6292b4a))
- Changed configuration title ([1c21b7f](https://github.com/PKief/vscode-markdown-checkbox/commit/1c21b7f))
> 28 January 2019
## 1.3.0 (2018-04-22)

### Features
- Fixes #10 [`#10`](https://github.com/PKief/vscode-extension-markdown-checkbox/issues/10)

- Toggle all checkboxes in the document with the [Multi-Select QuickPick](https://github.com/PKief/vscode-markdown-checkbox/blob/main/README.md#pick-checkboxes)
- Rearranged context menu entries
#### [v1.4.1](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.4.0...v1.4.1)

### Other improvements
> 27 November 2018
- Added tests
- Added CI tools

## 1.2.0 (2018-03-23)
- Fixed security issue with event-stream dependency [`4e83234`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/4e83234310fb99edcd78260875397c6f105f6a20)
- Updated package-lock.json [`57048cd`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/57048cda4387b2f377f56bf1dcdf72a09b34f77e)

### Features
#### [v1.4.0](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.3.0...v1.4.0)

- **status bar**: Added configuration to control the visibility of the status bar item ([6067ec9](https://github.com/PKief/vscode-markdown-checkbox/commit/6067ec9)), closes [#8](https://github.com/PKief/vscode-markdown-checkbox/issues/8)
> 28 October 2018
## 1.1.1 (2018-01-09)

### Bug Fixes
- Updated dependencies [`238f504`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/238f5041e26ed3d0dc2e47387dee344e63bd7576)
- Automated changes to package-lock.json on npm install. [`c1c3bb0`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/c1c3bb09bef269bcc6429c396b3f1b64d8498c1f)
- Changed configuration title [`1c21b7f`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/1c21b7f779db75acfdf5458fd1961f6942264647)
- Updated dependencies [`dee10ed`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/dee10edb6a2e7d2c65200bbcede69bdc3c609aa7)
- Activate create/mark commands when language mode matches configuration [`35be174`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/35be1740daf62e73ee7033fec8a532b49dd4bba3)
- Updated test setup [`6292b4a`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/6292b4ae0cca0ca7e8b7d5e9eed953fcf68797ec)
- Improved code quality [`275d66d`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/275d66d11b88d1b17bbf6e6a72dff4983cd0813a)
- Removed bithound config file [`0b20424`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/0b2042481611d4f8175ebc078c01119d03b87018)
- Added test (for #9) [`7b0e376`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/7b0e376c03d974f562cbc0d2f86ed97f3a39d522)
- Updated readme (for #9) [`780f980`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/780f9804a4d708a5b55eb7caad5c41c3da34231a)
- Show status bar for other language IDs (related to #9) [`fc160e5`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/fc160e55e228e98c9f6adb1c450574a1f0454c6a)
- Fix what looks like capitalization typo [`27fc951`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/27fc95118324fa598089147c4b80c6463002e500)

- **status bar**: Status bar updates completed tasks if a lowercase 'x' is used ([515407e](https://github.com/PKief/vscode-markdown-checkbox/commit/515407e)), closes [#7](https://github.com/PKief/vscode-markdown-checkbox/issues/7)
#### [v1.3.0](https://github.com/PKief/vscode-extension-markdown-checkbox/compare/v1.2.0...v1.3.0)

## 1.1.0 (2017-11-23)
> 22 April 2018
### Features

- **checkbox**: added date support ([@jcvtieck](https://github.com/jcvtieck) in [#6](https://github.com/PKief/vscode-markdown-checkbox/pull/6))
- Added quick pick to toggle all checkboxes in a document [`292d15d`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/292d15d4b4844a607d30598b5ce1e8036655ba59)
- Added tests for helper functions [`e7bc3c5`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/e7bc3c5b3bc36ccc3a63411552552b58578d740c)
- Updated version [`144ec79`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/144ec79e8223685724cd2a6201605238cda57a13)
- Added tests [`1441735`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/144173509a0558de949986aebd405bd56b1b9ba1)
- Added CI [`cf8f747`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/cf8f747188d853e44657fda22cd021e509337de2)
- Added test [`cd51104`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/cd51104da69050c744a6fce996db1dd2381f835f)
- Fixed issue with creating new checkboxes [`228ff9f`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/228ff9f75c9af9f2875e90d406dc17235911b3a4)
- Added test [`2a3cd2d`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/2a3cd2d2b7d819ede520a60a3eb6e97679254cdb)
- Improved tests [`c8648b4`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/c8648b437606516137ceff51d8f1c18f046b626b)
- Updated tslint rules [`cf2c8ab`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/cf2c8ab695057bef5b68848ed4d86d5acc1cabb2)
- Fixed tests [`777b137`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/777b137db079522a147f80a670cb7f9e6146850e)
- Updated year [`d3aef0c`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/d3aef0ca1c247f6fcd3464311bc00727f0206587)
- Renamed file [`a3b8c04`](https://github.com/PKief/vscode-extension-markdown-checkbox/commit/a3b8c04cf7a958bd7df2c520cab65840aebdd065)

### Refactoring

- code refactoring
- reduced extension size

## 1.0.3 (2017-07-31)

- updated description
- keybindings for Mac ([@mark-anders](https://github.com/mark-anders) in [#5](https://github.com/PKief/vscode-markdown-checkbox/pull/5))
- updated dependencies
- added tslint
- updated logo

## 1.0.2 (2016-10-09)

- added status bar item to show status of all checkboxes
8 changes: 8 additions & 0 deletions auto-changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"output": "CHANGELOG.md",
"template": "changelog-template.hbs",
"unreleased": true,
"commitLimit": false,
"startingVersion": "v1.3.0",
"ignoreCommitPattern": "Release"
}
Loading

0 comments on commit f1b9727

Please sign in to comment.