forked from hallee9000/juuust-react-icon
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.21 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
41
42
43
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 }}