From cfac9972c4fb28ec3536411f0f778391bde202e2 Mon Sep 17 00:00:00 2001 From: "frankind.eth" Date: Tue, 19 Mar 2024 08:28:58 -0300 Subject: [PATCH 1/2] feat: configure semantic-release --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..c5b3cdd2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: + - main + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: "pnpm" + - run: pnpm install + - run: pnpm build + - run: pnpm test + - run: pnpm audit signatures + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release From 6cef6a8570b786efa19a1a5b4c9b52fb41c1c128 Mon Sep 17 00:00:00 2001 From: "frankind.eth" Date: Tue, 19 Mar 2024 08:34:02 -0300 Subject: [PATCH 2/2] fix: include semantic-release run command --- .github/workflows/release.yml | 2 +- package.json | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5b3cdd2..6e9e1525 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: branches: - - main + - develop permissions: contents: write diff --git a/package.json b/package.json index ebb57191..1459f5c0 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,15 @@ { - "name": "swaplace-dapp", - "version": "0.1.0", - "private": true, + "name": "swaplace", + "description": "your greatest deals are here", + "version": "0.0.0-development", + "license": "MIT", + "repository": "blockful-io/swaplace-dapp", "scripts": { "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "semantic-release": "semantic-release" }, "dependencies": { "@headlessui-float/react": "^0.13.0", @@ -30,7 +33,11 @@ "web3": "^4.3.0", "web3-eth-ens": "^4.0.8" }, + "publishConfig": { + "access": "public" + }, "devDependencies": { + "semantic-release": "23.0.2", "@types/node": "^20", "@types/node-fetch": "^2.6.9", "@types/react": "^18",