Simplify release workflow
This commit is contained in:
parent
8f436bde8e
commit
31955c463c
|
@ -21,20 +21,7 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn --frozen-lockfile --non-interactive
|
run: yarn --frozen-lockfile --non-interactive
|
||||||
|
|
||||||
- name: Publish latest
|
- name: Publish
|
||||||
if: "!contains(github.ref, '-')"
|
run: npm publish
|
||||||
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
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue