chore: update dependencies to run node v22 #26
Workflow file for this run
This file contains hidden or 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 | |
| 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 |