Skip to content

node@20 compatibilty and move to GitHub Actions #2

node@20 compatibilty and move to GitHub Actions

node@20 compatibilty and move to GitHub Actions #2

Workflow file for this run

name: Node applications
on:
push:
branches:
- $default-branch
tags:
- 'v*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install and test
run: npm clean-install-test -- --tldjs-update-rules
- name: Publish on npm
if: github.ref_type == 'tag'
run: |
npm run build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}