Skip to content

specify node version in publish #5

specify node version in publish

specify node version in publish #5

Workflow file for this run

name: Publish
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: |
~/.elm
~/.npm
**/elm-stuff
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm run check-versions
- run: npm install
- uses: jorelali/setup-elm@v5
- uses: dillonkearns/elm-publish-action@v1
id: elm-package-publish
with:
node-version: 18
github-token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.elm-package-publish.outputs.is-publishable == 'true'
run: npm run runner:compile && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}