Skip to content

Merge pull request #11 from alliander-opensource/adapt-for-multiple-d… #12

Merge pull request #11 from alliander-opensource/adapt-for-multiple-d…

Merge pull request #11 from alliander-opensource/adapt-for-multiple-d… #12

name: build and publish
on:
push:
tags:
- '*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
scope: "@alliander-opensource"
registry-url: 'https://registry.npmjs.org'
- name: install dependencies
run: npm install
- name: run tests
run: npm run test
- name: compile typescript
run: npm run build
- name: publish npm package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM}}