This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
doc: use json rpc provider in verifying example #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 | |
env: | |
NODE_ENV: ci | |
name: Release | |
jobs: | |
tests: | |
name: Tests | |
uses: ./.github/workflows/tests.yml | |
linters: | |
name: Linters | |
uses: ./.github/workflows/linters.yml | |
release: | |
name: Publish Release | |
runs-on: ubuntu-latest | |
needs: [tests, linters] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- run: npm ci | |
- run: npm run build | |
- 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 }}" |