Skip to content

feat: add cfx_getFeeBurnt rpc #1304

feat: add cfx_getFeeBurnt rpc

feat: add cfx_getFeeBurnt rpc #1304

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# Workflow syntax for GitHub Actions
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
# Context and expression syntax for GitHub Actions
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions
name: Publish Pre-release Version
# on: [push]
on:
pull_request:
branches:
- dev
types:
- closed
jobs:
pre-release:
if: ${{ github.event.pull_request.merged == true && github.head_ref == '__release-pkg' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
with:
# to trigger next gh action
# https://git.luolix.topmunity/t/push-from-action-even-with-pat-does-not-trigger-action/17622/6
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: ${{ matrix.node-version }}
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@7.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cli: latest
bb: latest
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v3
id: yarn-and-maven-cache # use this to check for `cache-hit` (`steps.yarn-and-maven-cache.outputs.cache-hit != 'true'`)
with:
path: |
~/.m2/repository
${{ steps.yarn-cache-dir-path.outputs.dir }}
./.shadow-cljs
key: ${{ runner.os }}-yarn-and-maven-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('./shadow-cljs.edn') }}-${{ hashFiles('./deps.edn') }}
restore-keys: |
${{ runner.os }}-yarn-and-maven-
- run: yarn install --immutable
- name: Set package version
id: get-package-version
run: |
echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> "$GITHUB_OUTPUT"
- name: Print package version
run: echo "PACKAGE_VERSION=${{ steps.get-package-version.outputs.PACKAGE_VERSION }}"
- name: Get PR Release
uses: actions/github-script@v6
id: get-release-version-and-tag
env:
NEXT_VERSION: ${{ steps.get-package-version.outputs.PACKAGE_VERSION }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return await require('.github/scripts/getPreReleaseNumber.js')({github, context, core});
- uses: release-drafter/release-drafter@v5
id: create_draft_prod_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitish: ${{ github.sha }}
name: Release ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).prod_tag }}
config-name: release-drafter-prod.yml
version: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).prod_version }}
tag: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).prod_tag }}
draft: true
- uses: release-drafter/release-drafter@v5
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitish: ${{ github.sha }}
config-name: release-drafter-pre.yml
name: Pre release ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).tag }}
version: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).version }}
tag: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).tag }}
prerelease: true
publish: true
- name: build and release
env:
SNOWPACK_PUBLIC_SENTRY_DSN: ${{ secrets.SNOWPACK_PUBLIC_SENTRY_DSN }}
SNOWPACK_PUBLIC_FLUENT_ENV: 'debug-release'
SNOWPACK_PUBLIC_FLUENT_VERSION: ${{ fromJSON(steps.get-release-version-and-tag.outputs.result).version }}
run: yarn build
- name: zip files
run: |
cd ./dist
zip -r ./chrome.zip ./chrome
zip -r ./firefox.zip ./firefox
zip -r ./edge.zip ./edge
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*.zip