-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (37 loc) · 1.13 KB
/
update-icons.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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'
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: pnpm --prefix ./packages/icon-kit run build
- name: Update icons
run: pnpm --prefix ./packages/icon-kit run start
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Update icons
committer: ${{ 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