Skip to content

Merge pull request #302 from equinor/sefo/ci/add-node-parameters #625

Merge pull request #302 from equinor/sefo/ci/add-node-parameters

Merge pull request #302 from equinor/sefo/ci/add-node-parameters #625

Workflow file for this run

name: Node CI
on:
push:
branches: [dev]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
always-auth: true
token: ${{secrets.NPM_TOKEN}}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
npm run lint
env:
CI: true
- name: Publish to NPM
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
npm publish