change to src/svg
Showing
... | @@ -14,18 +14,17 @@ jobs: | ... | @@ -14,18 +14,17 @@ jobs: |
steps: | steps: | ||
- uses: actions/checkout@v1 | - uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | |||
with: | |||
node-version: '10.x' | |||
- run: yarn install | |||
- name: Figma Action | - name: Figma Action | ||
uses: primer/[email protected] | uses: primer/[email protected] | ||
with: | with: | ||
args: "format=svg outputDir=./src/icons/" | args: "format=svg outputDir=./src/" | ||
env: | env: | ||
FIGMA_FILE_URL: ${{ secrets.FIGMA_FILE_URL }} | FIGMA_FILE_URL: ${{ secrets.FIGMA_FILE_URL }} | ||
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }} | FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }} | ||
- uses: actions/setup-node@v1 | |||
with: | |||
node-version: '10.x' | |||
- run: yarn install | |||
- run: yarn generate | - run: yarn generate | ||
- run: yarn build | - run: yarn build | ||
- run: yarn publish | - run: yarn publish | ||
... | ... |
... | @@ -28,9 +28,9 @@ | ... | @@ -28,9 +28,9 @@ |
}, | }, | ||
"homepage": "https://github.com/leadream/juuust-icon#readme", | "homepage": "https://github.com/leadream/juuust-icon#readme", | ||
"scripts": { | "scripts": { | ||
"generate": "sudo rm -rf src/icons && node bin/build.js", | "generate": "rm -rf src/icons && node bin/build.js", | ||
"build:bundle": "sudo rm -rf dist && rollup --config rollup.config.js", | "build:bundle": "rm -rf dist && rollup --config rollup.config.js", | ||
"build:es": "sudo rm -rf build && babel src --out-dir build --copy-files", | "build:es": "rm -rf build && babel src --out-dir build --copy-files", | ||
"build": "concurrently \"yarn:build:*\"" | "build": "concurrently \"yarn:build:*\"" | ||
}, | }, | ||
"config": { | "config": { | ||
... | ... |
Please register or sign in to comment