Skip to content

Merge pull request #301 from equinor/sefo/ci/change-token-variable #624

Merge pull request #301 from equinor/sefo/ci/change-token-variable

Merge pull request #301 from equinor/sefo/ci/change-token-variable #624

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 }}
- 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