Skip to content

Update actions/setup-node action to v6 #2564

Update actions/setup-node action to v6

Update actions/setup-node action to v6 #2564

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 18.20.0
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: node_modules
key: npm-${{ hashFiles('package-lock.json') }}
- run: npm install
- run: npm run lint
- run: npm run test
- id: docker_meta
uses: crazy-max/ghaction-docker-meta@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e # v4.4.0
with:
images: docker.pkg.github.com/appvia/githubUserManager/githubUserManager
tag-sha: true
tag-latest: true
tag-semver: |
{{version}}
label-custom: |
org.opencontainers.image.vendor=appvia
org.opencontainers.image.documentation=https://github.com/appvia/githubUserManager
org.opencontainers.image.authors=Chris Nesbitt-Smith <chris.nesbitt-smith@appvia.io>
maintainer=appvia
- name: Login to docker registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # tag=v2.1.0
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Packages
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # v4.0.0
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}