Skip to content

Bump helmet from 6.0.1 to 6.1.3 #3066

Bump helmet from 6.0.1 to 6.1.3

Bump helmet from 6.0.1 to 6.1.3 #3066

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvmrc
- uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvmrc.outputs.NODE_VERSION }}
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run e2e
- uses: docker/setup-buildx-action@v2
with:
install: true
- uses: docker/build-push-action@v3
with:
build-args: |
NODE_RELEASE=${{ steps.nvmrc.outputs.NODE_VERSION }}
load: true
push: false
tags: textbook/impasse
- run: npm run e2e:docker
deploy-docker:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: build
steps:
- uses: actions/checkout@v3
- run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvmrc
- name: Get full tag
id: full_tag
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Get major version
id: versions
run: |
echo "MAJOR=$(echo $VERSION | cut -d. -f1)" >> $GITHUB_OUTPUT
echo "MINOR=$(echo $VERSION | cut -d. -f2)" >> $GITHUB_OUTPUT
env:
VERSION: ${{ steps.full_tag.outputs.VERSION }}
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: docker/build-push-action@v3
with:
build-args: |
NODE_RELEASE=${{ steps.nvmrc.outputs.NODE_VERSION }}
push: true
tags: |
textbook/impasse
textbook/impasse:${{ steps.full_tag.outputs.VERSION }}
textbook/impasse:${{ steps.versions.outputs.MAJOR }}
textbook/impasse:${{ steps.versions.outputs.MAJOR }}.${{ steps.versions.outputs.MINOR }}
- uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: textbook/impasse
deploy-heroku:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: build
steps:
- uses: actions/checkout@v3
- uses: akhileshns/heroku-deploy@v3.12.13
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: impasse
heroku_email: ${{ secrets.HEROKU_EMAIL }}