Skip to content

Commit

Permalink
[release] 20240502 (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname authored May 2, 2024
1 parent f6a06db commit 2c861f0
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/actions/create-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
shell: bash

- working-directory: ${{ github.workspace }}
run: node ${{ github.action_path }}/gh-release-script.js ${{ github.workspace }}/${{ inputs.package-path }}
run: node ${{ github.action_path }}/gh-release-script.js ${{ github.workspace }}/${{ inputs.package-path }} ${{ github.sha }}
env:
REPO_TOKEN: ${{ inputs.repo-token }}
shell: bash
1 change: 1 addition & 0 deletions .github/actions/create-release/gh-release-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async function publishRelease(releaseInfo) {
name: `[${version}] ${repoName}`,
repo: 'subql-ethereum',
tag_name: `${packageName[1]}/${version}`,
target_commitish: `${myArgs[1]}`,
body: releaseInfo
}).catch( err => {
core.setFailed(err)
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,13 @@ on:
paths-ignore:
- '.github/workflows/**'

jobs:
pre-ci:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: 'Block Concurrent Executions'
uses: softprops/turnstyle@v1
with:
poll-interval-seconds: 10
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}

concurrency:
group: publish
cancel-in-progress: false

jobs:
Bump-Prerelease-Publish:
name: Bump-Prerelease-Publish
needs: pre-ci
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]') && !startsWith(github.event.head_commit.message, '[release]') && github.repository == 'subquery/subql-ethereum'"
runs-on: ubuntu-latest
steps:
Expand Down
28 changes: 22 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,38 @@ on:
- '.github/workflows/**'
workflow_dispatch:

concurrency:
# Same group as prerelease
group: publish
cancel-in-progress: false

jobs:

# This gets the commit message because workflow dispatch doesnt set: github.event.head_commit.message
pre-ci:
runs-on: ubuntu-latest
timeout-minutes: 1
outputs:
commit-message: ${{ steps.step1.outputs.commit-message }}
steps:
- name: 'Block Concurrent Executions'
uses: softprops/turnstyle@v1
- uses: actions/checkout@v4
with:
poll-interval-seconds: 10
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
fetch-depth: 100

# Get the commit message, workflow_dispatch doesn't contain it so we need to get it through git cli
- id: step1
run: |
if [ -n "${{ github.event.head_commit.message }}" ]
then
echo "commit-message=${{ github.event.head_commit.message }}" >> "$GITHUB_OUTPUT"
else
echo "commit-message=\"$(git log -1 --pretty=%B | head -n 1)\"" >> "$GITHUB_OUTPUT"
fi
Build-Publish:
name: Build-Publish
needs: pre-ci
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]') && startsWith(github.event.head_commit.message, '[release]') && github.repository == 'subquery/subql-ethereum'"
if: "!startsWith(needs.pre-ci.outputs.commit-message, '[SKIP CI]') && startsWith(needs.pre-ci.outputs.commit-message, '[release]') && github.repository == 'subquery/subql-ethereum'"
runs-on: ubuntu-latest
steps:
#Check out
Expand Down
3 changes: 3 additions & 0 deletions .yarn/versions/a404f57e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
undecided:
- "@subql/common-ethereum"
- "@subql/types-ethereum"
5 changes: 4 additions & 1 deletion packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [4.3.0] - 2024-05-02
### Changed
- Update node-core with bug fixes (#285)

Expand Down Expand Up @@ -460,7 +462,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Init release

[Unreleased]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.2.0...HEAD
[Unreleased]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.3.0...HEAD
[4.3.0]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.2.0...node-ethereum/4.3.0
[4.2.0]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.1.1...node-ethereum/4.2.0
[4.1.1]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.1.0...node-ethereum/4.1.1
[4.1.0]: https://github.com/subquery/subql-ethereum/compare/node-ethereum/4.0.0...node-ethereum/4.1.0
Expand Down
5 changes: 2 additions & 3 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/node-ethereum",
"version": "4.2.1-0",
"version": "4.3.0",
"description": "",
"author": "Ian He",
"license": "GPL-3.0",
Expand Down Expand Up @@ -59,6 +59,5 @@
"files": [
"/dist",
"/bin"
],
"stableVersion": "4.2.0"
]
}

0 comments on commit 2c861f0

Please sign in to comment.