removes pr hook for publish #9
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: Publish | |
on: | |
push: | |
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: | |
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 }} |