| 12345678910111213141516171819202122232425 |
- name: npm-publish
- on: create
- jobs:
- npm-publish:
- name: npm-publish
- runs-on: ubuntu-latest
- if: github.event.ref_type == 'tag'
- steps:
- - name: Checkout repository
- uses: actions/checkout@master
- - name: Set up Node.js
- uses: actions/setup-node@master
- with:
- node-version: 10.0.0
- - id: publish
- name: publish NPM
- 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 }}"
|