Skip to content

Bump express from 4.18.2 to 4.19.2 #34

Bump express from 4.18.2 to 4.19.2

Bump express from 4.18.2 to 4.19.2 #34

Workflow file for this run

name: Release
on:
pull_request:
types:
- closed
jobs:
release:
if: |
github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get version
run: |
VERSION=$(cat ./version)
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
- uses: bbonkr/[email protected]
id: validateTag
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ env.RELEASE_VERSION }}
- name: Fail if version tag already exists
if: ${{ steps.validateTag.outputs.tag != '' }}
run: exit 1
- name: Push version tag to repository
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ env.RELEASE_VERSION }}
create_annotated_tag: true
tag_prefix: v
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
push: true
tags: ghashange/sendgrid-mock:${{ env.RELEASE_VERSION }}