chore(deps): update dependency node to v22 #599
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: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: 20.17.0 | |
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
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: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 | |
with: | |
images: docker.pkg.github.com/remarkable/githubUserManager/githubUserManager | |
tags: | | |
type=sha | |
type=semver,pattern=v{{version}} | |
labels: | | |
org.opencontainers.image.vendor=reMarkable | |
org.opencontainers.image.documentation=https://github.com/reMarkable/githubUserManager | |
org.opencontainers.image.authors=Marcus Ramberg <[email protected]> | |
maintainer=reMarkable | |
- name: Login to docker registry | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: docker.pkg.github.com | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push to GitHub Packages | |
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
labels: ${{ steps.docker_meta.outputs.labels }} |