Skip to content

Commit

Permalink
Fix github publish with output from previous step (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
idastambuk authored Jul 19, 2023
1 parent cef3f69 commit fcaf4f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
});
});
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit fcaf4f5

Please sign in to comment.