Skip to content

Commit

Permalink
chore: use dripip reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Mar 10, 2022
1 parent cf0aea9 commit d71028c
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]

jobs:
tests:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -25,24 +25,10 @@ jobs:
- run: yarn test:${{ matrix.environment }}
env:
GRAPHQL_VERSION: ${{ matrix.graphql-version }}
release:
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: v16
cache: yarn
- run: yarn install
- name: Make release
id: release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
yarn -s dripip preview --json > result.json
echo '==> Publish Result'
jq '.' < result.json

release-canary:
needs: [test]
uses: prisma-labs/dripip/.github/workflows/release.yml@master
secrets:
npmToken: ${{secrets.NPM_TOKEN}}
githubToken: ${{secrets.GITHUB_TOKEN}}

0 comments on commit d71028c

Please sign in to comment.