[release] 20240814 (#57) #84
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: "Prerelease" | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/workflows/**' | |
workflow_dispatch: | |
jobs: | |
pre-ci: | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
steps: | |
- name: 'Block Concurrent Executions' | |
uses: softprops/turnstyle@v1 | |
with: | |
poll-interval-seconds: 10 | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} | |
Bump-Prerelease-Publish: | |
name: Bump-Prerelease-Publish | |
needs: pre-ci | |
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]') && !startsWith(github.event.head_commit.message, '[release]') && github.repository == 'subquery/datasource-processors'" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
token: ${{ secrets.REPO_TOKEN }} | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- uses: marceloprado/has-changed-path@v1 | |
id: changed-acala-evm | |
with: | |
paths: packages/acala-evm | |
- uses: marceloprado/has-changed-path@v1 | |
id: changed-frontier-evm | |
with: | |
paths: packages/frontier-evm | |
- uses: marceloprado/has-changed-path@v1 | |
id: changed-moonbeam-evm | |
with: | |
paths: packages/moonbeam-evm | |
- uses: marceloprado/has-changed-path@v1 | |
id: changed-ethermint-evm | |
with: | |
paths: packages/ethermint-evm | |
- uses: marceloprado/has-changed-path@v1 | |
id: changed-substrate-wasm | |
with: | |
paths: packages/substrate-wasm | |
- run: yarn | |
- name: build | |
run: yarn build | |
#Add remove-stable-version | |
- name: Bump acala-evm & deploy | |
if: steps.changed-acala-evm.outputs.changed == 'true' | |
uses: ./.github/actions/create-prerelease | |
with: | |
package-path: packages/acala-evm | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Bump frontier-evm & deploy | |
if: steps.changed-frontier-evm.outputs.changed == 'true' | |
uses: ./.github/actions/create-prerelease | |
with: | |
package-path: packages/frontier-evm | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Bump moonbeam-evm & deploy | |
if: steps.changed-moonbeam-evm.outputs.changed == 'true' || steps.changed-frontier-evm.outputs.changed == 'true' | |
uses: ./.github/actions/create-prerelease | |
with: | |
package-path: packages/moonbeam-evm | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Bump ethermint-evm & deploy | |
if: steps.changed-ethermint-evm.outputs.changed == 'true' || steps.changed-ethermint-evm.outputs.changed == 'true' | |
uses: ./.github/actions/create-prerelease | |
with: | |
package-path: packages/ethermint-evm | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Bump substrate-wasm & deploy | |
if: steps.changed-substrate-wasm.outputs.changed == 'true' | |
uses: ./.github/actions/create-prerelease | |
with: | |
package-path: packages/substrate-wasm | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v5 | |
with: | |
message: '[SKIP CI] Prerelease' | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} |