Skip to content

Adding postcss (#39) #4

Adding postcss (#39)

Adding postcss (#39) #4

Workflow file for this run

name: publish-icons
on:
push:
branches:
- master
# file paths to consider in the event. Optional; defaults to all.
paths:
- package.json
jobs:
icon_automation:
name: Publish icons
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 }}