Skip to content

Commit

Permalink
feat: create github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickolbe committed Aug 17, 2021
1 parent 65f5252 commit 2bc0b80
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
tags:
- v*.*.*

jobs:
release:
name: Release
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: ["16"]
os: [ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Generate Release Body
run: npx extract-changelog-release > RELEASE_BODY.md

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
bodyFile: "RELEASE_BODY.md"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2bc0b80

Please sign in to comment.