File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,27 +223,16 @@ export default class Npm {
223223 res = await this . pkg . git . getReleaseTags ( ) ;
224224 if ( ! res . ok ) return res ;
225225
226- const tags = res . data ;
227-
228- for ( const tag in tags ) {
229- if ( tag !== "latest" && tag !== "next" ) continue ;
230-
231- if ( ! tags [ tag ] . version ) continue ;
232-
233- tags [ tag ] = tags [ tag ] . version ;
234- }
235-
236- const updates = {
237- "latest" : null ,
238- "next" : null ,
239- ...tags ,
226+ const tags = {
227+ "latest" : res . data . latest . version ,
228+ "next" : res . data . next . version ,
240229 } ;
241230
242231 res = await this . api . getPackageTags ( this . pkg . name ) ;
243232 if ( ! res . ok ) return res ;
244233 const remoteTags = res . data ;
245234
246- for ( const [ tag , version ] of Object . entries ( updates ) ) {
235+ for ( const [ tag , version ] of Object . entries ( tags ) ) {
247236
248237 // set
249238 if ( version && remoteTags [ tag ] !== version ) {
You can’t perform that action at this time.
0 commit comments