From 52f6e5f36ebc1823939d9716bee4e83ebf5ba8ab Mon Sep 17 00:00:00 2001 From: zaaack Date: Mon, 30 Sep 2024 19:36:23 +0800 Subject: [PATCH] fix: publish --- Foyfile.ts | 5 ++--- README.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Foyfile.ts b/Foyfile.ts index 1bea253..95062d3 100644 --- a/Foyfile.ts +++ b/Foyfile.ts @@ -69,9 +69,8 @@ option('-v, --version ', 'patch | minor | major', { default: 'patch' }) task<{ version: string }>('publish', ['preversion'.options(ctx => ({ version: ctx.options.version }))], async ctx => { await ctx.exec([ `npm version ${ctx.options.version}`, - `git push origin master`, - `git push origin master --tags -f`, - `npm --registry https://registry.npmjs.org/ publish`, + `npm publish --registry=https://registry.npmjs.org/ --access public`, + `git push origin master --tags`, ]) }) diff --git a/README.md b/README.md index dea779c..81b345b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Foy -[![Build Status](https://travis-ci.org/zaaack/foy.svg?branch=master)](https://travis-ci.org/zaaack/foy) [![npm](https://img.shields.io/npm/v/foy.svg)](https://www.npmjs.com/package/foy) [![npm](https://img.shields.io/npm/dm/foy.svg)](https://www.npmjs.com/package/foy) [![install size](https://packagephobia.now.sh/badge?p=foy)](https://packagephobia.now.sh/result?p=foy) +[![publish](https://github.com/zaaack/foy/actions/workflows/publish.yml/badge.svg)](https://github.com/zaaack/foy/actions/workflows/publish.yml) [![npm](https://img.shields.io/npm/v/foy.svg)](https://www.npmjs.com/package/foy) [![npm](https://img.shields.io/npm/dm/foy.svg)](https://www.npmjs.com/package/foy) [![install size](https://packagephobia.now.sh/badge?p=foy)](https://packagephobia.now.sh/result?p=foy) A simple, light-weight and modern task runner for general purpose.