Skip to content

Commit

Permalink
adds publishing workflow, bumps version number
Browse files Browse the repository at this point in the history
  • Loading branch information
amorey committed Apr 6, 2024
1 parent 7814e1a commit 46abacd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish

on:
push:
tags:
- '**'

jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
- run: pnpm build
- run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fancy-ansi",
"version": "0.1.0",
"description": "Small JavaScript library for rendering ANSI markup in the browser",
"version": "0.1.1-rc1",
"description": "Small JavaScript library for converting ANSI to HTML",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit 46abacd

Please sign in to comment.