File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 uses : actions/checkout@v4
2525 with :
2626 fetch-depth : 0
27+
28+ - name : Setup Node
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : latest
2732
2833 - name : Get bundle version
2934 run : |
3641 run : zip -r $filename ./*
3742
3843 - name : Generate changelog
39- run : node --experimental-strip-types ./bin/generateChangelog.ts -w
44+ run : pnpm run generate-changelog -w
4045
4146 - name : Publish release to GitHub
4247 run : gh release create $VERSION "./icons/$filename" -F CHANGELOG.md -t "ProIcons v$VERSION" -d=${{ inputs.draft }}
Original file line number Diff line number Diff line change @@ -5,15 +5,16 @@ import pkg from '../package.json' with { type: 'json' }
55import { kebabCase } from './helpers/rename.ts'
66const { version } = pkg
77
8- const shouldWrite = process . argv . includes ( '--write ' ) || process . argv . includes ( '-w ' )
8+ const shouldWrite = process . argv . includes ( '-w ' ) || process . argv . includes ( '--write ' )
99const __rootdir = resolve ( import . meta. dirname , '../' )
1010
1111export function generateChangelog ( ) {
1212 const newIcons = [ ]
1313 const updatedIcons = [ ]
1414 const renamedIcons = [ ]
1515
16- for ( const { name, added, updated } of lockfile . icons ) {
16+ //@ts -ignore
17+ for ( const [ name , { added, updated } ] of Object . entries ( lockfile . icons ) ) {
1718 if ( added == version ) {
1819 newIcons . push ( name )
1920 } else if ( updated == version ) {
You can’t perform that action at this time.
0 commit comments