Skip to content

refactor(commitlint): rename the CommitLint type to CommitLinter #6

refactor(commitlint): rename the CommitLint type to CommitLinter

refactor(commitlint): rename the CommitLint type to CommitLinter #6

Workflow file for this run

name: CD
on:
push:
tags: ['v[0-9]+.[0-9]+.[0-9]+', 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+']
jobs:
create-release-note:
permissions:
contents: write
runs-on: ubuntu-latest
name: Create release note
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set nodejs
uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org/
node-version: lts/*
- name: Generate release note
run: |
if ${{ contains(github.ref_name, 'canary') }}; then
npx changelogithub@latest --prerelease
else
npx changelogithub@latest
fi
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-assets:
permissions:
contents: write
needs: create-release-note
name: Publish assets
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Packaging assets
run: |
base_name="insight-${{ github.ref_name }}"
tar czf "$base_name.tar.gz" --transform "s,^,$base_name/," -- dist/ LICENSE README.md
- name: Releasing assets
uses: softprops/action-gh-release@v2
with:
files: insight-${{ github.ref_name }}.tar.gz