-
Notifications
You must be signed in to change notification settings - Fork 162
40 lines (38 loc) · 1.03 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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'
- run: yarn install
- 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:bundle
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- run: yarn build
- name: GitHub Pages
uses: crazy-max/[email protected]
with:
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}