-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
38 lines (34 loc) · 1.06 KB
/
action.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
name: 'Generate Cursor Theme'
description: 'Builds a cursor theme from a valid `cursor-theme.json` and its sprites.'
inputs:
cursor_theme_json:
description: 'The `cursor-theme.json` file to generate the cursor theme from.'
required: true
output_directory:
description: 'Directory to build the cursor theme in.'
required: false
default: './build/themes'
runs:
using: 'composite'
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: .
- name: Install dependencies
working-directory: ${{ github.action_path }}
run: pnpm i
shell: bash
- name: Build cursor theme
working-directory: ${{ github.action_path }}
env:
INPUT_CURSOR_THEME_JSON: ${{ github.workspace }}/${{ inputs.cursor_theme_json }}
INPUT_OUTPUT_DIRECTORY: ${{ github.workspace }}/${{ inputs.output_directory }}
run: node dist/main.js
shell: bash