Merge pull request #11 from alliander-opensource/adapt-for-multiple-d… #12
Workflow file for this run
This file contains 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: 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}} |