comparison tasks.py @ 142:845ba03729f9

fix registry path
author drewp@bigasterisk.com
date Mon, 08 May 2023 13:29:42 -0700
parents a6490559ce73
children
comparison
equal deleted inserted replaced
141:27fad20dc101 142:845ba03729f9
33 ctx.run(f'pnpm run test_forever', pty=True) 33 ctx.run(f'pnpm run test_forever', pty=True)
34 34
35 35
36 @task 36 @task
37 def release(ctx): 37 def release(ctx):
38 ctx.run('pnpm whoami --registry https://bigasterisk.com/js') 38 ctx.run('pnpm whoami --registry https://bigasterisk.com/js/')
39 diffs = ctx.run('hg status') 39 diffs = ctx.run('hg status')
40 if diffs.stdout.strip(): 40 if diffs.stdout.strip():
41 print(" ^^ commit these diffs first") 41 print(" ^^ commit these diffs first")
42 return 42 return
43 v = ctx.run('pnpm version minor').stdout.strip() 43 v = ctx.run('pnpm version minor').stdout.strip()
44 ctx.run(f'hg commit --message "release {v}"') 44 ctx.run(f'hg commit --message "release {v}"')
45 build(ctx) 45 build(ctx)
46 install_to_bigasterisk_lib(ctx, 'streamed-graph.*', 46 install_to_bigasterisk_lib(ctx, 'streamed-graph.*',
47 f'lib/streamed-graph/{v}/') 47 f'lib/streamed-graph/{v}/')
48 # this fails with ENEEDAUTH: 48 # this fails with ENEEDAUTH:
49 #ctx.run(f'pnpm publish --registry https://bigasterisk.com/js', pty=True) 49 ctx.run(f'pnpm publish --registry https://bigasterisk.com/js/', pty=True)
50 50
51 51
52 def install_to_bigasterisk_lib(ctx, distFile, libPath): 52 def install_to_bigasterisk_lib(ctx, distFile, libPath):
53 filesRoot = '/my/site/homepage/newsrc/files' 53 filesRoot = '/my/site/homepage/newsrc/files'
54 outdir = f'{filesRoot}/{libPath}' 54 outdir = f'{filesRoot}/{libPath}'