Simplify release workflow

This commit is contained in:
Pavel Djundik 2019-11-26 22:42:07 +02:00
parent 8f436bde8e
commit 31955c463c
1 changed files with 2 additions and 15 deletions

View File

@ -21,20 +21,7 @@ jobs:
- name: Install
run: yarn --frozen-lockfile --non-interactive
- name: Publish latest
if: "!contains(github.ref, '-')"
run: npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Publish next
if: contains(github.ref, '-')
run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Remove next tag
if: "!contains(github.ref, '-')"
run: npm dist-tag rm thelounge-theme-solarized next || true
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}