generated from jasonkuhrt/template-typescript-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (27 loc) · 876 Bytes
/
trunk.yaml
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
name: trunk
concurrency: trunk
on:
push:
branches: [main]
jobs:
# https://github.jparrowsec.cnmunity/t/how-can-i-test-if-secrets-are-available-in-an-action/17911/10
checkNpmTokenSet:
name: Check if NPM_TOKEN secret is set
runs-on: ubuntu-latest
outputs:
isNpmTokenSet: ${{ steps.checkNpmTokenSet.outputs.isNpmTokenSet }}
steps:
- name: Check if NPM_TOKEN secret is set
id: checkNpmTokenSet
run: |
echo "isNpmTokenSet: ${{secrets.NPM_TOKEN != ''}}"
echo "::set-output name=isNpmTokenSet::${{secrets.NPM_TOKEN != ''}}"
release-canary:
needs: [checkNpmTokenSet]
if: needs.checkNpmTokenSet.outputs.isNpmTokenSet == 'true'
runs-on: ubuntu-latest
steps:
- uses: prisma-labs/dripip@master
with:
npmToken: ${{secrets.NPM_TOKEN}}
githubToken: ${{secrets.GITHUB_TOKEN}}