Skip to content

Commit

Permalink
chore(release): create a github release on new version
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinTh committed Apr 14, 2023
1 parent 85cb0ff commit dbad773
Show file tree
Hide file tree
Showing 8 changed files with 356 additions and 819 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,59 @@ jobs:
corentinth/it-tools:${{ env.RELEASE_VERSION }}
ghcr.io/corentinth/it-tools:latest
ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}
github-release:
runs-on: ubuntu-latest
needs: docker-release
steps:
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v3

- run: corepack enable

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Build the app
run: pnpm build

- name: Zip the app
run: zip -r it-tools-${{ env.RELEASE_VERSION }}.zip dist/*

- name: Get changelog
id: changelog
run: |
EOF=$(openssl rand -hex 8)
echo "changelog<<$EOF" >> $GITHUB_OUTPUT
node ./scripts/getLatestChangelog.mjs >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: it-tools-${{ env.RELEASE_VERSION }}.zip
tag_name: v${{ env.RELEASE_VERSION }}
draft: true
prerelease: false
body: |
## Docker images
- Docker Hub
- `corentinth/it-tools:latest`
- `corentinth/it-tools:${{ env.RELEASE_VERSION }}`
- GitHub Container Registry
- `ghcr.io/corentinth/it-tools:latest`
- `ghcr.io/corentinth/it-tools:${{ env.RELEASE_VERSION}}`
## Changelog
${{ steps.changelog.outputs.changelog }}
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,42 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## Version 2023.04.14-f9b77b7

### Features
- **new-tool**: http status codes (8355bd2)

### Refactoring
- **uuid-generator**: prevent NaN in quantity (6fb4994)

### Chores
- **release**: create a github release on new version (f9b77b7)
- **version**: reset CHANGELOG content to support new format (85cb0ff)

## Version 2023.04.14-2f0d239

### Features
- **new-tool**: http status codes (8355bd2)

### Refactoring
- **uuid-generator**: prevent NaN in quantity (6fb4994)

### Chores
- **release**: create a github release on new version (2f0d239)
- **version**: reset CHANGELOG content to support new format (85cb0ff)

## Version 2023.04.14-474cae4

### Features
- **new-tool**: http status codes (8355bd2)

### Refactoring
- **uuid-generator**: prevent NaN in quantity (6fb4994)

### Chores
- **release**: create a github release on new version (474cae4)
- **version**: reset CHANGELOG content to support new format (85cb0ff)

## Version v2023.4.13-dce9ff9

_Diff not available_
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "it-tools",
"version": "2023.4.13-dce9ff9",
"version": "2023.4.14-f9b77b7",
"description": "Collection of handy online tools for developers, with great UX. ",
"keywords": [
"productivity",
Expand Down Expand Up @@ -30,7 +30,7 @@
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
"script:create-new-tool": "node scripts/create-tool.mjs",
"release": "standard-version"
"release": "node ./scripts/release.mjs"
},
"dependencies": {
"@it-tools/bip39": "^0.0.4",
Expand Down Expand Up @@ -101,6 +101,7 @@
"@vue/test-utils": "^2.3.2",
"@vue/tsconfig": "^0.1.3",
"c8": "^7.13.0",
"consola": "^3.0.2",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
Expand All @@ -109,7 +110,6 @@
"jsdom": "^19.0.0",
"less": "^4.1.3",
"prettier": "^2.8.7",
"standard-version": "^9.5.0",
"start-server-and-test": "^1.15.4",
"typescript": "~4.5.5",
"unocss": "^0.50.8",
Expand All @@ -121,6 +121,7 @@
"vite-svg-loader": "^3.6.0",
"vitest": "^0.13.1",
"vue-tsc": "^0.31.4",
"workbox-window": "^6.5.4"
"workbox-window": "^6.5.4",
"zx": "^7.2.1"
}
}
Loading

0 comments on commit dbad773

Please sign in to comment.