Skip to content

release action

release action #2

Workflow file for this run

name: Release
on:
push:
branches: ["main"]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup pnpm
uses: pnpm/[email protected]
with:
run_install: false
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install deps (with cache)
run: pnpm install
- name: Run generator
run: pnpm run generate-template
- uses: actions/upload-artifact@v3
name: Upload clickup template
with:
name: clickup-template
path: ./clickup-template.csv
if-no-files-found: ignore
- uses: actions/upload-artifact@v3
name: Upload jira template
with:
name: jira-template
path: ./jira-template.csv
if-no-files-found: ignore
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GH_TOKEN }}
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
artifacts: "jira-template,clickup-template"
bodyFile: "CHANGELOG.md"