Update icons #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update icons | |
# Manual trigger | |
on: workflow_dispatch | |
env: | |
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }} | |
FIGMA_FILE: ${{ secrets.ICON_KIT__FIGMA_FILE }} | |
jobs: | |
update: | |
name: Update icons | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Install puppeteer | |
run: npx @puppeteer/browsers install chrome | |
- name: Build | |
run: pnpm --filter @shopware-ag/meteor-icon-kit run build | |
- name: Update icons | |
run: pnpm --filter @shopware-ag/meteor-icon-kit run start | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: Update icons | |
committer: Dennis Mader <${{ secrets.ICON_KIT__COMMITTER }}> | |
author: Dennis Mader <${{ secrets.ICON_KIT__COMMITTER }}> | |
branch: update-icons | |
delete-branch: true | |
branch-suffix: timestamp | |
title: Update icons | |
assignees: Weltraumakustik |