Skip to content

Update package.json #356

Update package.json

Update package.json #356

Workflow file for this run

name: icon-automation
on:
push:
branches:
- master
# file paths to consider in the event. Optional; defaults to all.
paths:
- package.json
pull_request:
branches:
- master
# file paths to consider in the event. Optional; defaults to all.
paths:
- package.json
jobs:
icon_automation:
name: figma icon automation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '18.x'
registry-url: ${{ secrets.REGISTRY }}
scope: '@prism'
- run: yarn install
- name: Figma Action
uses: iwtem/[email protected]
with:
outputDir: ./src/
format: svg
concurrency: 10
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
FIGMA_FILE_URL: ${{ secrets.FIGMA_FILE_URL }}
- run: yarn generate
- run: yarn build:bundle
- run: npm publish -timeout=9999999
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- run: yarn build:docs
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: docs/dist
keep_history: false
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}