From a481d955f39c545f8a82a353590b83a5899cd9ae Mon Sep 17 00:00:00 2001 From: Andrei Bancioiu Date: Thu, 24 Mar 2022 18:48:07 +0200 Subject: [PATCH] Create "pre-release" on alpha / beta. --- .github/workflows/erdjs-publish-alpha-beta.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/erdjs-publish-alpha-beta.yml b/.github/workflows/erdjs-publish-alpha-beta.yml index 49e22765..a462806c 100644 --- a/.github/workflows/erdjs-publish-alpha-beta.yml +++ b/.github/workflows/erdjs-publish-alpha-beta.yml @@ -20,6 +20,17 @@ jobs: node-version: 12 registry-url: https://registry.npmjs.org/ + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo " - [npmjs](https://www.npmjs.com/package/@elrondnetwork/erdjs)" >> notes.txt + echo " - [CHANGELOG](https://github.com/ElrondNetwork/elrond-sdk-erdjs/blob/main/CHANGELOG.md)" >> notes.txt + echo "" >> notes.txt + + RELEASE_TAG=v$(node -p "require('./package.json').version") + gh release create --prerelease $RELEASE_TAG --title="$RELEASE_TAG" --generate-notes --notes-file=notes.txt + - run: npm ci - run: npm test