From 46abacdbfed68061a2fdf5af515b01775c874c80 Mon Sep 17 00:00:00 2001 From: Andres Morey Date: Sat, 6 Apr 2024 13:00:25 +0300 Subject: [PATCH] adds publishing workflow, bumps version number --- .github/workflows/publish.yml | 27 +++++++++++++++++++++++++++ package.json | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1f7c24a --- /dev/null +++ b/.github/workflows/publish.yml @@ -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}} diff --git a/package.json b/package.json index 8b80836..302170a 100644 --- a/package.json +++ b/package.json @@ -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",