Skip to content

Bump typescript from 5.4.5 to 5.5.3 in /test/test_solidity_project #119

Bump typescript from 5.4.5 to 5.5.3 in /test/test_solidity_project

Bump typescript from 5.4.5 to 5.5.3 in /test/test_solidity_project #119

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@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install NODE JS
uses: actions/setup-node@v2
with:
node-version: 18
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9.x
- 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/