Skip to content

Commit

Permalink
refactor: update release file
Browse files Browse the repository at this point in the history
  • Loading branch information
mashal-m committed May 24, 2023
1 parent 014712a commit 19d6ec9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
id: ver
outputs:
output1: ${{ steps.ver.outputs.nextVer }}

print:
needs: tests
runs-on: ubuntu-20.04
steps:
- name: Print version
run: echo ${{ needs.tests.outputs.output1 }}
11 changes: 4 additions & 7 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@
"prepare": "@semantic-release/npm",
"publish": [
"@semantic-release/npm",
["@semantic-release/exec",
{
"publishCmd": "echo ::set-output name=nextVer::${nextRelease.version}"
}
],
"@semantic-release/exec",
{
"path": "@semantic-release/github",
"assets": {
"path": "dist/*"
}
},
"publishCmd": "echo ::set-output name=nextVer::${nextRelease.version}"
}
],
"success": [],
"fail": []
}
}

0 comments on commit 19d6ec9

Please sign in to comment.