Skip to content

build: fixes how node version is set #108

build: fixes how node version is set

build: fixes how node version is set #108

Workflow file for this run

name: builds and pushes the github page
on:
workflow_dispatch:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
check-latest: true
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
env:
# Logs in into github packages
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy storybook to Github Pages
run: npm run deploy-storybook -- --ci
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}