Skip to content

Commit

Permalink
Merge pull request #76 from ndaidong/4.0.1
Browse files Browse the repository at this point in the history
v4.0.1rc1
  • Loading branch information
ndaidong authored Jun 23, 2024
2 parents 83b96dd + 7e3b575 commit 0a9c91e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- uses: actions/checkout@v4
- run: npx jsr publish
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: npm build
run: deno task build
- name: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd npm && npm publish --provenance --access public
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Lightweight util for generating random sentences, paragraphs and articles in
English. Inspired by [Sentencer](https://github.com/kylestetz/Sentencer) and
[metaphorpsum.com](http://metaphorpsum.com/).

[![NPM](https://badge.fury.io/js/txtgen.svg)](https://badge.fury.io/js/txtgen)
![CodeQL](https://github.com/ndaidong/txtgen/workflows/CodeQL/badge.svg)
[![CI test](https://github.com/ndaidong/txtgen/workflows/ci-test/badge.svg)](https://github.com/ndaidong/txtgen/actions)
[![Coverage Status](https://coveralls.io/repos/github/ndaidong/txtgen/badge.svg)](https://coveralls.io/github/ndaidong/txtgen)
![CodeQL](https://github.com/ndaidong/txtgen/workflows/CodeQL/badge.svg)
[![NPM](https://img.shields.io/npm/v/%40ndaidong%2Ftxtgen?color=32bb24)](https://www.npmjs.com/package/@ndaidong/txtgen)
[![JSR](https://jsr.io/badges/@ndaidong/txtgen?color=32bb24)](https://jsr.io/@ndaidong/txtgen)

# Demo

Expand All @@ -17,6 +18,8 @@ English. Inspired by [Sentencer](https://github.com/kylestetz/Sentencer) and

### Deno

https://jsr.io/@ndaidong/txtgen

```sh
deno add @ndaidong/txtgen

Expand Down Expand Up @@ -64,6 +67,8 @@ for (let i = 0; i < 5; i++) {

### Node.js & Bun

https://www.npmjs.com/package/@ndaidong/txtgen

```bash
npm i @ndaidong/txtgen
# pnpm
Expand Down
11 changes: 10 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ndaidong/txtgen",
"version": "4.0.0",
"version": "4.0.1-rc1",
"description": "Util for generating random sentences, paragraphs and articles in English",
"homepage": "https://github.com/ndaidong/txtgen",
"repository": {
Expand All @@ -20,5 +20,14 @@
"test": {
"include": ["tests"],
"exclude": []
},
"publish": {
"include": [
"LICENSE",
"README.md",
"mod.ts",
"utils/*.ts",
"tests/*.ts"
]
}
}

0 comments on commit 0a9c91e

Please sign in to comment.