Skip to content

Merge pull request #26 from 1995parham/dependabot/npm_and_yarn/braces… #23

Merge pull request #26 from 1995parham/dependabot/npm_and_yarn/braces…

Merge pull request #26 from 1995parham/dependabot/npm_and_yarn/braces… #23

Workflow file for this run

---
name: publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- run: npm run build
publish:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- name: publish if version has been updated
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"