Skip to content

Merge pull request #14 from BESTSELLER/figma-update-1691668575746 #42

Merge pull request #14 from BESTSELLER/figma-update-1691668575746

Merge pull request #14 from BESTSELLER/figma-update-1691668575746 #42

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
jobs:
icon_automation:
name: figma icon automation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run yarn install
run: yarn install
- name: Fetch icons
run: yarn fetch
env:
FIGMA_FILE_URL: ${{ secrets.FIGMA_FILE_URL }}
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
- name: Generate the icons
run: yarn generate
- name: Build the bundle
run: yarn build:bundle
- name: Publish new version to NPM
uses: actions/setup-node@v1
with:
node-version: 10.x
registry-url: "https://npm.pkg.github.com"
always-auth: true
- run: yarn publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Build the dev rollup config
run: yarn build
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}