fix: retrieve decimals from asset (#3) #18
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
on: | |
push: | |
branches: | |
- main | |
- beta | |
- +([0-9])?(.{+([0-9]),x}).x | |
env: | |
DOTENV_CONFIG_PATH: "./.env.example" | |
name: "Release" | |
jobs: | |
tests: | |
name: "Lint and Tests" | |
uses: ./.github/workflows/tests.yml | |
release: | |
name: "Publish Release" | |
needs: [tests] | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
node-version: 16 | |
- run: yarn install --frozen-lockfile | |
- run: yarn typechain | |
- uses: codfish/semantic-release-action@v2 | |
id: semantic | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Output new release version | |
if: steps.semantic.outputs.new-release-published == 'true' | |
run: | | |
echo "🎉New Release Published: ${{ steps.semantic.outputs.release-version }}" |