Skip to content

Commit

Permalink
chore(fix): workflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
bucurdavid committed Feb 23, 2024
1 parent 630532b commit f24f76c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/semantic_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.x'

- name: Install dependencies
run: npm install

Expand All @@ -25,18 +23,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --dry-run --no-cli

run: npx semantic-release --dry-run --no-cli --branches "${{ github.head_ref }}"
outputs:
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
new-release-version: ${{ steps.get-next-version.outputs.new-release-version }}
comment:
runs-on: ubuntu-latest
needs: get-next-version
steps:
- name: Suggested version echo
run: echo "Suggested version is ${{ needs.get-next-version.outputs.new-release-version }}"
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Suggested release version: ${{needs.determine-release-version.outputs.new-release-version}}'
body: 'Suggested release version: ${{needs.get-next-version.outputs.new-release-version}}'
})

0 comments on commit f24f76c

Please sign in to comment.