Skip to content

Commit

Permalink
feat: add release process
Browse files Browse the repository at this point in the history
Signed-off-by: mbwhite <[email protected]>
  • Loading branch information
mbwhite committed Nov 24, 2023
1 parent 73b0ed6 commit c8caed0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

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

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Use Node.js 20
uses: actions/setup-node@v1
with:
node-version: 20.x
- run: npm ci
- run: npm run build
- run: npm pack

- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
append_body: true
files: tekton-lint-*.tgz
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "tsc --pretty",
"coverage": "jest --coverage",
"prepare": "husky install",
"release": "commit-and-tag-version"
"release": "commit-and-tag-version --sign"
},
"version": "0.6.1",
"description": "Linter for Tekton definitions",
Expand Down

0 comments on commit c8caed0

Please sign in to comment.