Skip to content

Commit

Permalink
fix: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaack committed Sep 30, 2024
1 parent 189a275 commit 52f6e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Foyfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ option('-v, --version <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`,
])
})

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 52f6e5f

Please sign in to comment.