Skip to content

Commit

Permalink
Merge pull request #136 from RDFLib/jamie/release-workflow-fix
Browse files Browse the repository at this point in the history
Fixed getting current version from release tag instead of manual input
  • Loading branch information
jamiefeiss committed Jan 24, 2024
2 parents 7ecd8cc + 1de4154 commit 31f060f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Get release version
id: version
run: echo "VALUE=$(npx --yes semver ${{ github.event.release.tag_name }})" >> "$GITHUB_OUTPUT"

- name: Update project version
run: |
npm version ${{ steps.version.outputs.VALUE }} --no-git-tag-version
- name: Build and push
uses: docker/build-push-action@v4
Expand All @@ -72,7 +85,7 @@ jobs:

- name: Get release version
id: version
run: echo "VALUE=$(npx --yes semver ${{ github.event.inputs.tag }})" >> "$GITHUB_OUTPUT"
run: echo "VALUE=$(npx --yes semver ${{ github.event.release.tag_name }})" >> "$GITHUB_OUTPUT"

- name: Update project version and zip file
run: |
Expand Down

0 comments on commit 31f060f

Please sign in to comment.