Merge branch 'master' of github.com:leadream/juuust-icon
Showing
... | @@ -5,10 +5,11 @@ on: | ... | @@ -5,10 +5,11 @@ on: |
- master | - master | ||
# file paths to consider in the event. Optional; defaults to all. | # file paths to consider in the event. Optional; defaults to all. | ||
paths: | paths: | ||
- icons.json | - package.json | ||
jobs: | jobs: | ||
check_pr: | icon_automation: | ||
name: figma icon automation | |||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||
steps: | steps: | ||
- uses: actions/checkout@v1 | - uses: actions/checkout@v1 | ||
... | @@ -16,6 +17,14 @@ jobs: | ... | @@ -16,6 +17,14 @@ jobs: |
- name: "install" | - name: "install" | ||
run: yarn install | run: yarn install | ||
- name: Figma Action | |||
uses: primer/[email protected] | |||
with: | |||
args: "format=svg outputDir=./build/" | |||
env: | |||
FIGMA_FILE_URL: "https://www.figma.com/file/${{ secrets.FILE_KEY }}" | |||
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }} | |||
- name: "generate" | - name: "generate" | ||
run: yarn generate | run: yarn generate | ||
... | ... |
{ | { | ||
"name": "juuust-icon", | "name": "juuust-icon", | ||
"version": "0.1.2", | "version": "0.1.14", | ||
"description": "Icon automation workflow with Figma", | "description": "Icon automation workflow with Figma", | ||
"main": "dist/index.js", | "main": "dist/index.js", | ||
"module": "build/index.js", | "module": "build/index.js", | ||
... | @@ -48,4 +48,4 @@ | ... | @@ -48,4 +48,4 @@ |
"svgo": "^1.3.0", | "svgo": "^1.3.0", | ||
"uppercamelcase": "^3.0.0" | "uppercamelcase": "^3.0.0" | ||
} | } | ||
} | } | ||
\ No newline at end of file |
Please register or sign in to comment