diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index 3f0d5703b..890de5019 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -5,7 +5,7 @@ on: branches: [master] jobs: - test: + tests: strategy: matrix: node-version: [10.x, 12.x] @@ -21,3 +21,19 @@ jobs: run: yarn --frozen-lockfile - name: Test run: yarn -s test + publish: + needs: [tests] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-node@v1 + - name: Install deps + run: yarn --frozen-lockfile + - name: Make release + id: release + env: + NPM_TOKEN: ${{secrets.NPM_TOKEN}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + run: dripip preview