Skip to content

fix: ancestor key for unsorted categories (#4) #19

fix: ancestor key for unsorted categories (#4)

fix: ancestor key for unsorted categories (#4) #19

Workflow file for this run

name: deploy/test
on:
push:
branches:
- main
workflow_call:
env:
STORYBLOK_PERSONAL_ACCESS_TOKEN: ${{ secrets.STORYBLOK_PERSONAL_ACCESS_TOKEN }}
jobs:
test-ct-category:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Test
working-directory: packages/ct-category
run: pnpm test
deploy-ct-category:
needs: test-ct-category
name: Deploy CT category field plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false
- 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 dependencies
run: pnpm install
- name: Build
working-directory: packages/ct-category
run: pnpm build
- name: Deploy
working-directory: packages/ct-category
run: npx @storyblok/field-plugin-cli deploy --scope partner-portal --name ct-category --skipPrompts