Skip to content

chore(deps): update dependency svgtofont to v5 (#45) #72

chore(deps): update dependency svgtofont to v5 (#45)

chore(deps): update dependency svgtofont to v5 (#45) #72

Workflow file for this run

name: GitHub Actions Build and Deploy icons
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run font
- run: npm run copy
- run: npm run build
- run: rm -rf fonts/react
- run: cp -rp measure/design fonts
- run: cp lib/*js ./
- run: cp lib/*.d.ts ./
- run: rm -rf index.js
- run: ls -al
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: fonts/CONTRIBUTORS.svg
avatarSize: 42
- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json
- name: get tag version
id: tag_version
uses: jaywcjlove/changelog-generator@main
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./fonts
- name: Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
with:
head-ref: ${{steps.create_tag.outputs.version}}
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
- name: Create Release
uses: ncipollo/release-action@v1
if: steps.create_tag.outputs.successful
with:
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.create_tag.outputs.version }}
tag: ${{ steps.create_tag.outputs.version }}
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/icons@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm version](https://img.shields.io/npm/v/@uiw/icons.svg)](https://www.npmjs.com/package/@uiw/icons)
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/icons/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
```bash
npm i @uiw/icons@${{steps.create_tag.outputs.versionNumber}}
```
[@uiw/icons@${{steps.create_tag.outputs.versionNumber}} document](https://raw.githack.com/uiwjs/icons/v${{steps.create_tag.outputs.versionNumber}}/fonts/index.html) / [uiw icons measure](https://raw.githack.com/uiwjs/icons/v${{steps.create_tag.outputs.versionNumber}}/measure/design/index.html)
${{ steps.changelog.outputs.changelog }}
- run: rm -rf fonts/uiw-icons
- run: rm -rf fonts/*.html
- run: rm -rf fonts/design
# - name: 📦 @uiw/icons publish to NPM
# uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.NPM_TOKEN }}
# package: ./package.json
- run: npm publish --access public
name: 📦 @uiw/icons publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}