Skip to content

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@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: set npm config
- run: npm config set registry https://registry.npmmirror.com
- run: yarn install --strict-ssl=false
- name: Figma Action
uses: primer/[email protected]
with:
args: "format=svg outputDir=./src/"
env:
FIGMA_FILE_URL: ${{ secrets.FIGMA_FILE_URL }}
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
- run: yarn generate
- run: yarn build
- run: yarn build-bundle
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: WeChat Work notification
uses: chf007/action-wechat-work@master
env:
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
with:
msgtype: text
content: |
兄弟们,咱们的图标更新啦!
请使用 yarn upgrade juuust-vue-icon --latest 更新。
在线查看图标:https://leadream.github.io/juuust-vue-icon/