Skip to content

chore: update package versions (#1353) #730

chore: update package versions (#1353)

chore: update package versions (#1353) #730

name: Publish Templates
on:
push:
branches:
- main
env:
FORCE_COLOR: 3
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish_template:
name: Publish Template
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: internal
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.13.0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install pnpm Dependencies
run: pnpm i --frozen-lockfile --ignore-scripts
- name: Get changed files
id: changed-files
run: |
changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | tr '\n' ' ')
echo "all_changed_files=${changed_files}" >> $GITHUB_OUTPUT
- name: Publish template
run: pnpm update-templates "${{ steps.changed-files.outputs.all_changed_files }}"
env:
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
CONTENTFUL_ENVIRONMENT: ${{ secrets.CONTENTFUL_ENVIRONMENT }}
CONTENTFUL_CONTENT_TYPE: ${{ secrets.CONTENTFUL_CONTENT_TYPE }}