From b0cbcce664247f7bd83099923070e77b3a5da2c0 Mon Sep 17 00:00:00 2001 From: Fawad Ali Date: Mon, 13 May 2024 15:53:01 +0200 Subject: [PATCH] Try pushing dist to tag --- .github/workflows/publish.yml | 5 +++-- .release-it.json | 3 +++ README.md | 4 ++++ package.json | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d3b009..6c599d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,7 @@ name: Publish Package on: + push: workflow_dispatch: inputs: increment: @@ -41,8 +42,8 @@ jobs: - name: Setup git run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" - name: Build run: pnpm build diff --git a/.release-it.json b/.release-it.json index 41bd449..dee20f0 100644 --- a/.release-it.json +++ b/.release-it.json @@ -6,5 +6,8 @@ "release": true, "autoGenerate": true, "releaseName": "v${version}" + }, + "hooks": { + "after:git:bump": "git add dist -f" } } diff --git a/README.md b/README.md index 4e7ca91..c294a6b 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,7 @@ In the project where you want to use this package as a dependency, run the follo ```sh pnpm link --global @pufferfinance/smart-contract-lib ``` + +## Release + +The release is automated using [release-it](https://github.com/release-it/release-it). diff --git a/package.json b/package.json index 9d7228e..9407b58 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "@pufferfinance/smart-contract-lib", + "description": "Library for Puffer smart contract interactions", "version": "0.0.3-0", "repository": { "type": "git",