Skip to content

adds publish job

adds publish job #2

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: dillonkearns/elm-publish-action@v1
id: elm-package-publish
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-elm: ./node_modules/.bin/elm
- if: steps.elm-package-publish.outputs.is-publishable == 'true'
run: npm run runner:compile
run: npm publish

Check failure on line 34 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 34, Col: 9): 'run' is already defined
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}