From 0ad05975a354538cbd7623254ea280273deba6c5 Mon Sep 17 00:00:00 2001 From: Andrei Bancioiu Date: Thu, 17 Mar 2022 11:25:24 +0200 Subject: [PATCH 1/2] Bump version (9.2.1). Also create release from Github Workflow. --- .github/workflows/erdjs-publish.yml | 48 ++++++++++------------------- CHANGELOG.md | 3 ++ package-lock.json | 2 +- package.json | 2 +- 4 files changed, 22 insertions(+), 33 deletions(-) diff --git a/.github/workflows/erdjs-publish.yml b/.github/workflows/erdjs-publish.yml index 3cb4b906..9b2ab675 100644 --- a/.github/workflows/erdjs-publish.yml +++ b/.github/workflows/erdjs-publish.yml @@ -1,24 +1,10 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - name: Publish erdjs on: workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: npm ci - - run: npm test - publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -26,22 +12,22 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish --access=public + + - name: Create release env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + 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 - # TODO: Enable when we make the repository "hw-app-elrond" public. - # publish-gpr: - # needs: build - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-node@v1 - # with: - # node-version: 12 - # registry-url: https://npm.pkg.github.com/ - # - run: npm ci - # - run: cd erdjs && npm publish --access=public - # env: - # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + RELEASE_TAG=v$(node -p "require('./package.json').version") + gh release create $RELEASE_TAG --prerelease --title="$RELEASE_TAG" --generate-notes --notes-file=notes.txt + + - run: npm ci + - run: npm test + + # - name: Publish to npmjs + # env: + # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + # run: npm publish --access=public diff --git a/CHANGELOG.md b/CHANGELOG.md index 859ef0b1..2176d7ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes will be documented in this file. Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. ## Unreleased + - TBD + +## [9.2.1] - [Fix / simplify some imports](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/148) - [Handle strings in binary codec](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/153) - [Fix data fetching from the blockchain - wait before polling for the first time](https://github.com/ElrondNetwork/elrond-sdk-erdjs/pull/152) diff --git a/package-lock.json b/package-lock.json index 3962f1d8..39753261 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@elrondnetwork/erdjs", - "version": "9.2.0", + "version": "9.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cb36f764..993093c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elrondnetwork/erdjs", - "version": "9.2.0", + "version": "9.2.1", "description": "Smart Contracts interaction framework", "main": "out/index.js", "types": "out/index.d.js", From 865d4a1e20960ee2c166d9dbb94a1e666d0f3c65 Mon Sep 17 00:00:00 2001 From: Andrei Bancioiu Date: Thu, 17 Mar 2022 11:28:19 +0200 Subject: [PATCH 2/2] Update Github Workflow. --- .github/workflows/erdjs-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/erdjs-publish.yml b/.github/workflows/erdjs-publish.yml index 9b2ab675..4223a85a 100644 --- a/.github/workflows/erdjs-publish.yml +++ b/.github/workflows/erdjs-publish.yml @@ -22,12 +22,12 @@ jobs: echo "" >> notes.txt RELEASE_TAG=v$(node -p "require('./package.json').version") - gh release create $RELEASE_TAG --prerelease --title="$RELEASE_TAG" --generate-notes --notes-file=notes.txt + gh release create $RELEASE_TAG --title="$RELEASE_TAG" --generate-notes --notes-file=notes.txt - run: npm ci - run: npm test - # - name: Publish to npmjs - # env: - # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - # run: npm publish --access=public + - name: Publish to npmjs + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: npm publish --access=public