Skip to content

Commit

Permalink
Merge pull request #163 from ElrondNetwork/prerelease-on-beta
Browse files Browse the repository at this point in the history
Create "pre-release" in alpha / beta workflows
  • Loading branch information
andreibancioiu authored Mar 24, 2022
2 parents f7f6182 + a481d95 commit 5d27b02
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/erdjs-publish-alpha-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5d27b02

Please sign in to comment.