]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Publish pre-releases to beta channels
authorPierre Ossman <ossman@cendio.se>
Fri, 3 Jul 2020 14:00:04 +0000 (16:00 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 3 Jul 2020 14:00:04 +0000 (16:00 +0200)
Extra important for NPM which doesn't allow replacing a release once it
is published.

.github/workflows/deploy.yml

index 75a566bdf76179c9fe34f2b8febfb7fe538dcf23..b65ade9f2d08304fe0d06ee258cceb08d3cf171e 100644 (file)
@@ -14,6 +14,11 @@ jobs:
       - run: npm publish --access public
         env:
           NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+        if: ${{ !github.event.release.prerelease }}
+      - run: npm publish --access public --tag beta
+        env:
+          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+        if: ${{ github.event.release.prerelease }}
   snap:
     runs-on: ubuntu-latest
     container: snapcore/snapcraft
@@ -36,3 +41,6 @@ jobs:
         env:
           SNAPCRAFT_LOGIN: ${{secrets.SNAPCRAFT_LOGIN}}
       - run: snapcraft push --release=stable *.snap
+        if: ${{ !github.event.release.prerelease }}
+      - run: snapcraft push --release=beta *.snap
+        if: ${{ github.event.release.prerelease }}