mirror of
https://github.com/Newnetirc/thelounge-theme-newnet.git
synced 2026-01-23 23:20:18 +00:00
Simplify release workflow
This commit is contained in:
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user