Skip to content

chore: update dependencies to run node v22 #17

chore: update dependencies to run node v22

chore: update dependencies to run node v22 #17

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches: ['*']
workflow_dispatch:
jobs:
main:
name: Validate and Deploy
runs-on: ubuntu-latest
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node 22 + NPM cache
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@by-intera'
- name: Install Packages
run: |
npm config set //npm.pkg.github.com/:_authToken=$GH_PACKAGES_TOKEN
npm config set @by-intera:registry=https://npm.pkg.github.com
npm ci
- name: Publish Package
if: startsWith(github.ref, 'refs/tags/')
run: |
npm config set //npm.pkg.github.com/:_authToken=$GITHUB_TOKEN
npm config set @by-intera:registry=https://npm.pkg.github.com
npm publish