Skip to content

chore(main): release 1.0.0 #47

chore(main): release 1.0.0

chore(main): release 1.0.0 #47

Workflow file for this run

name: PR Checks
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# if the pull request target is default branch, then use normal rules
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.base_ref == 'main'
with:
ignoreLabels: |
autorelease-pending
bot
ignore-semantic-pull-request
# if ref starts with release/ then enforce only fix: prefix for pr title
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.base_ref, 'release/')
with:
types: |
fix
ignoreLabels: |
autorelease-pending
bot
ignore-semantic-pull-request
- uses: jdx/mise-action@bfb9fa0b029db830a8c570757cee683df207a6c5 # v2.4.0
with:
experimental: true
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
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 dependencies
run: pnpm install --frozen-lockfile
- name: Run checks
run: |
VAULT_PATH="$(mktemp -d)"
mkdir -p "${VAULT_PATH}/.obsidian/plugins"
env VAULT_PATH="$VAULT_PATH" \
mise run check