diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca99da6..59faae4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,8 @@ jobs: npm-publish: name: Publish to NPM & GitHub Package Registry runs-on: ubuntu-latest + outputs: + new_version: ${{ steps.version_check.outputs.version }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -73,6 +75,6 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} script: | await github.request(`POST /repos/${{ github.repository }}/releases`, { - tag_name: "v${{ steps.version_check.outputs.version }}", + tag_name: "v${{needs.npm-publish.outputs.new_version }}", generate_release_notes: true - }); + }); \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7405bb7..8b8694e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## v0.1.9 + +- Fix github publish with output from previous step (#21) + ## v0.1.8 - Update github release workflow (#20) diff --git a/package.json b/package.json index 53d4cf4..a04da7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grafana/async-query-data", - "version": "0.1.8", + "version": "0.1.9", "description": "Async query support for Grafana", "main": "dist/index.js", "scripts": {