Skip to content

Feat/subgraph changes only #406

Feat/subgraph changes only

Feat/subgraph changes only #406

Workflow file for this run

name: NPM Release
on:
pull_request:
types:
- closed
branches:
- develop
- main
jobs:
check:
runs-on: ubuntu-latest
outputs:
run: ${{ steps.checkSrc.outputs.run }}${{ steps.checkLabel.outputs.run }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
contracts:
- 'packages/contracts/**'
- '.github/workflows/contracts-deploy.yml'
- if: steps.changes.outputs.src == 'false'
id: checkSrc
run: echo "run=true" >> $GITHUB_OUTPUT
- if: contains(toJson(github.event.pull_request.labels.*.name), 'release:') && steps.checkSrc.outputs.run != true
id: checkLabel
run: echo "run=true" >> $GITHUB_OUTPUT
npmDeploy:
needs: ['check']
if: needs.check.outputs.run != true
uses: './.github/workflows/npm-release-reusable.yml'
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
ARABOT_PAT: ${{ secrets.ARABOT_PAT }}