Skip to content

Commit fcaf4f5

Browse files
authored
Fix github publish with output from previous step (#21)
1 parent cef3f69 commit fcaf4f5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
npm-publish:
99
name: Publish to NPM & GitHub Package Registry
1010
runs-on: ubuntu-latest
11+
outputs:
12+
new_version: ${{ steps.version_check.outputs.version }}
1113
steps:
1214
- name: Checkout repository
1315
uses: actions/checkout@v2
@@ -73,6 +75,6 @@ jobs:
7375
github-token: ${{secrets.GITHUB_TOKEN}}
7476
script: |
7577
await github.request(`POST /repos/${{ github.repository }}/releases`, {
76-
tag_name: "v${{ steps.version_check.outputs.version }}",
78+
tag_name: "v${{needs.npm-publish.outputs.new_version }}",
7779
generate_release_notes: true
78-
});
80+
});

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22

33
All notable changes to this project will be documented in this file.
4+
## v0.1.9
5+
6+
- Fix github publish with output from previous step (#21)
7+
48
## v0.1.8
59

610
- Update github release workflow (#20)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grafana/async-query-data",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Async query support for Grafana",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)