Skip to content

Bump express from 4.16.2 to 4.20.0 in /example #16

Bump express from 4.16.2 to 4.20.0 in /example

Bump express from 4.16.2 to 4.20.0 in /example #16

Workflow file for this run

name: 'Semver tag, npm version and publish'
on:
pull_request:
types:
- closed
branches:
- main
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
tag:
name: 'Version, publish and tag'
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'skip-release') == false
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@ukhomeoffice'
- name: Install npm dependencies
run: |
npm --loglevel warn ci --ignore-scripts
shell: bash
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish npm package
run: |
npm publish
shell: bash
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Tag repository
uses: UKHomeOffice/semver-tag-action@v4
with:
tag: ${{ steps.calculate.outputs.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}