Bump cspell from 7.3.8 to 8.17.1 #462
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- develop | |
- beta | |
- stable | |
env: | |
NODE_VERSION: 18 | |
PYTHON_VERSION: 3.9 | |
jobs: | |
publish: | |
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: ${{ env.NODE_VERSION }} | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'yarn' | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
cache: 'pip' | |
- name: Install building tools | |
run: pip3 install -r ./predeployed/scripts/requirements.txt | |
- name: Install project | |
run: yarn install | |
- name: Determine version | |
run: | | |
export BRANCH=${GITHUB_REF##*/} | |
echo "BRANCH=$BRANCH" >> $GITHUB_ENV | |
echo "Branch $BRANCH" | |
export VERSION=$(bash ./predeployed/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: | |
VERSION: ${{ env.VERSION }} | |
run: predeployed/scripts/build_package.sh | |
- name: Publish pip package | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: predeployed/scripts/publish_package.sh | |
- name: Publish interfaces npm package | |
env: | |
BRANCH: ${{ env.BRANCH }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: ./interfaces/publish_package.sh | |
- name: Generate ABI | |
env: | |
VERSION: ${{ env.VERSION }} | |
run: | | |
pip install predeployed/dist/*.whl | |
./predeployed/scripts/generate_abi.py > data/etherbase-$VERSION-abi.json | |
- 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: predeployed/dist/ | |
- name: Upload ABI | |
id: upload-abi | |
uses: dwenegar/upload-release-assets@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
release_id: ${{ steps.create_release.outputs.id }} | |
assets_path: data/*.json |