hotfix: added release dir .env variable for NPM publish stage (#229) #263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Icons | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the master branch | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
update-icons: | |
runs-on: ubuntu-latest | |
steps: | |
- if: github.event_name == 'push' | |
uses: actions/checkout@v4 | |
- if: github.event_name == 'pull_request' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22.11.0 | |
- name: Download Line Icons | |
run: npm ci --progress=false && npm run line:download | |
env: | |
API_DOWNLOAD_LINE: ${{ secrets.API_DOWNLOAD_LINE }} | |
STYLE: line | |
CSS_PREFIX: uil | |
- name: Download Solid Icons | |
run: npm run line:download | |
env: | |
API_DOWNLOAD_SOLID: ${{ secrets.API_DOWNLOAD_SOLID }} | |
STYLE: solid | |
CSS_PREFIX: uis | |
- name: Download Monochrome Icons | |
run: npm run monochrome:download | |
env: | |
API_DOWNLOAD_MONOCHROME: ${{ secrets.API_DOWNLOAD_MONOCHROME }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
title: Updated Icons |