Bump express from 4.16.2 to 4.20.0 in /example #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |