diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ee30592 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.json b/package.json index 4614101..2e99e4a 100644 --- a/package.json +++ b/package.json @@ -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",