Skip to content

Commit

Permalink
Update split.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
CMBill authored May 6, 2024
1 parent 9591426 commit 6ab0804
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/split.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,18 @@ jobs:
tags: true
directory: fonts
branch: latest

- name: Edit package.json And Publish
run: |
git checkout main -- package.json
mv package.json fonts/package.json
cd fonts
VER=$(cat VERSION)
NORMALIZED_VERSION=$(echo $VER | sed 's/^v//' | awk -F. '{if($3==null) print$1"."$2".0"; else print$0}')
npm version $NORMALIZED_VERSION --no-git-tag-version
- run: |
cd fonts
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 6ab0804

Please sign in to comment.