Skip to content

Update from https://github.com/Iconscout/unicons/commit/7ae1e9e10971a… #25

Update from https://github.com/Iconscout/unicons/commit/7ae1e9e10971a…

Update from https://github.com/Iconscout/unicons/commit/7ae1e9e10971a… #25

name: Publish to NPM RC
on:
push:
branches:
- "release-*"
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.11.0
registry-url: "https://registry.npmjs.org"
- name: Download & Build Icons
run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_AUTH_TOKEN }}
title: Updated Icons
- name: Publish to NPM
run: |
VERSION=$(node -p "require('./package.json').version")
RC_VERSION="${VERSION}-rc.${GITHUB_SHA::8}"
npm version $RC_VERSION --no-git-tag-version
npm publish --tag rc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}