-
Notifications
You must be signed in to change notification settings - Fork 43
37 lines (35 loc) · 1.01 KB
/
npm-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 }}