From c248a4133f9ad3618338df35e74a424068240574 Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Thu, 6 Jan 2022 10:22:28 -0600 Subject: [PATCH] feat: add GitHub release step during deploy --- .github/workflows/test-and-deploy.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 6cd590a108..5d111b6e3a 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -42,6 +42,13 @@ jobs: with: fetch-depth: 0 + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: 8 + + - run: npm install + - name: Login to Docker Hub uses: docker/login-action@v1 with: @@ -52,15 +59,14 @@ jobs: - name: Get tagged version run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Create GitHub Release + uses: sendgrid/dx-automator/actions/release@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push image run: make docker-build && make docker-push - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: 8 - - - run: npm install - name: Publish to NPM run: | npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN}