diff --git a/.github/workflows/espresso-release.yml b/.github/workflows/espresso-release.yml new file mode 100644 index 00000000..573fc764 --- /dev/null +++ b/.github/workflows/espresso-release.yml @@ -0,0 +1,25 @@ +on: + push: + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + workflow_dispatch: + +name: Create Release + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Create release + run: | + scripts/espresso-build-release + + - name: Release node package + uses: softprops/action-gh-release@v2 + if: matrixstartsWith(github.ref, 'refs/tags/') + with: + files: '*.tgz' diff --git a/package.json b/package.json index ab380e49..65971d8e 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "@arbitrum/nitro-contracts", - "version": "1.2.1", + "name": "@espressosystems/nitro-contracts", + "version": "1.4.0", "description": "Layer 2 precompiles and rollup for Arbitrum Nitro", "author": "Offchain Labs, Inc.", "license": "BUSL-1.1", "repository": { "type": "git", - "url": "git+https://github.com/offchainlabs/nitro-contracts.git" + "url": "git+https://github.com/espressosystems/nitro-contracts.git" }, "files": [ "src/", diff --git a/scripts/espresso-build-release b/scripts/espresso-build-release new file mode 100755 index 00000000..332309d5 --- /dev/null +++ b/scripts/espresso-build-release @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -euo pipefail + +yarn install +yarn build + +# remove conflicting IERC20 implementation +rm -rv build/contracts/src/rollup/FactoryDeployerHelper.sol/IERC20.* + +yarn pack