Bump @typescript-eslint/eslint-plugin from 6.0.0 to 8.9.0 in /typescript/ethers-v6 #224
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: | |
- stable | |
- beta | |
- develop | |
push: | |
tags: | |
- 'custom-release-*' | |
env: | |
NODE_VERSION: 18 | |
PYTHON_VERSION: 3.11 | |
jobs: | |
typescript: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: typescript/base | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install project | |
run: yarn | |
- name: Compile typescript | |
run: yarn compile | |
- name: Determine version | |
run: | | |
export BRANCH=${GITHUB_REF##*/} | |
echo "BRANCH=$BRANCH" >> $GITHUB_ENV | |
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: Publish NPM package | |
run: ./scripts/publish_package.sh | |
env: | |
BRANCH: ${{ env.BRANCH }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: typescript-${{ env.VERSION }} | |
prerelease: ${{ env.PRERELEASE }} | |
ethers-v5: | |
runs-on: ubuntu-latest | |
needs: | |
typescript | |
defaults: | |
run: | |
working-directory: typescript/ethers-v5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install base project | |
run: | | |
yarn ../base | |
yarn ../base compile | |
- name: Install project | |
run: yarn | |
- name: Compile typescript | |
run: yarn compile | |
- name: Determine version | |
run: | | |
export BRANCH=${GITHUB_REF##*/} | |
echo "BRANCH=$BRANCH" >> $GITHUB_ENV | |
echo "Branch $BRANCH" | |
export VERSION=$(CURRENT=true 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: Publish NPM package | |
run: ./scripts/publish_package.sh | |
env: | |
BRANCH: ${{ env.BRANCH }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: typescript-ethers-v5-${{ env.VERSION }} | |
prerelease: ${{ env.PRERELEASE }} | |
ethers-v6: | |
runs-on: ubuntu-latest | |
needs: | |
typescript | |
defaults: | |
run: | |
working-directory: typescript/ethers-v6 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install base project | |
run: | | |
yarn ../base | |
yarn ../base compile | |
- name: Install project | |
run: yarn | |
- name: Compile typescript | |
run: yarn compile | |
- name: Determine version | |
run: | | |
export BRANCH=${GITHUB_REF##*/} | |
echo "BRANCH=$BRANCH" >> $GITHUB_ENV | |
echo "Branch $BRANCH" | |
export VERSION=$(CURRENT=true 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: Publish NPM package | |
run: ./scripts/publish_package.sh | |
env: | |
BRANCH: ${{ env.BRANCH }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: typescript-ethers-v6-${{ env.VERSION }} | |
prerelease: ${{ env.PRERELEASE }} | |
python: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: python | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- 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 | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: python-${{ env.VERSION }} | |
prerelease: ${{ env.PRERELEASE }} | |
artifacts: python/dist/* |