Bump eslint-plugin-vue from 9.23.0 to 9.27.0 #824
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 Package | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
# This will only trigger the job on push, workflow_dispatch and on pull_request only if the pull request was merged, else it will skip the job | |
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: EndBug/version-check@v1 | |
id: check | |
with: | |
diff-search: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v2 | |
if: steps.check.outputs.changed == 'true' | |
with: | |
node-version: 12 | |
- run: yarn install | |
if: steps.check.outputs.changed == 'true' | |
- run: yarn run build | |
if: steps.check.outputs.changed == 'true' | |
- uses: JS-DevTools/npm-publish@v1 | |
if: steps.check.outputs.changed == 'true' | |
with: | |
token: ${{ secrets.NPM_AUTH_TOKEN }} | |
access: public |