Skip to content

Bump typescript from 5.4.5 to 5.7.2 in /test/test_solidity_project #125

Bump typescript from 5.4.5 to 5.7.2 in /test/test_solidity_project

Bump typescript from 5.4.5 to 5.7.2 in /test/test_solidity_project #125

Workflow file for this run

name: Build and publish
on:
pull_request:
types: [closed]
branches:
- develop
- beta
- stable
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:
- uses: actions/checkout@v4
- name: Install NODE JS
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'yarn'
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9.x
cache: 'pip'
- name: Install building tools
run: pip3 install -r scripts/requirements.txt
- name: Determine version
run: |
export BRANCH=${GITHUB_REF##*/}
echo "Branch $BRANCH"
export VERSION=$(bash ./scripts/calculate_version.sh)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Version $VERSION"
( test $BRANCH = "stable" && export PRERELEASE=false ) || export PRERELEASE=true
echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
- name: Build pip package
env:
PYTHONPATH: ./
VERSION: ${{ env.VERSION }}
run: ./scripts/build_package.sh
- name: Publish pip package
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
./scripts/publish_package.sh
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
draft: false
prerelease: ${{ env.PRERELEASE }}
- name: Upload Release Assets
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
assets_path: dist/