Skip to content

Commit

Permalink
Merge pull request blockful-io#228 from heronlancellot/feat/semantic-…
Browse files Browse the repository at this point in the history
…release-config

Feat/semantic release config
  • Loading branch information
FrancoAguzzi authored Mar 19, 2024
2 parents 3dcc788 + 95667a5 commit 189781c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- develop

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
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +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",
"semantic-release": "semantic-release"
"lint": "next lint --config .eslintrc"
},
"dependencies": {
Expand All @@ -32,7 +36,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",
Expand Down

0 comments on commit 189781c

Please sign in to comment.