Skip to content

Commit

Permalink
fix: release versioning (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
davenewza authored Feb 5, 2024
1 parent e44dce5 commit 4ee6f4f
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ jobs:
- semantic-release
runs-on: ubuntu-latest
steps:
- name: With tag
- name: With version
shell: bash
run: |
echo ${{ needs.semantic-release.outputs.new_version }}
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
ref: ${{ needs.semantic-release.outputs.new_version }}
ref: v${{ needs.semantic-release.outputs.new_version }}
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
"keel"
]
steps:
- name: With tag and channel
- name: With version and channel
shell: bash
run: |
echo ${{ needs.semantic-release.outputs.new_version }}
Expand All @@ -147,7 +147,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ needs.semantic-release.outputs.new_version }}
ref: v${{ needs.semantic-release.outputs.new_version }}
fetch-depth: 0
- name: Install Go deps
if: ${{ matrix.package == 'wasm' }}
Expand All @@ -158,17 +158,10 @@ jobs:
- name: Install ${{ matrix.package }} publish dependencies
working-directory: ./packages/${{ matrix.package }}
run: pnpm install --frozen-lockfile
- name: Find and replace
uses: mad9000/actions-find-and-replace-string@3
id: make_package_version
with:
source: ${{ needs.semantic-release.outputs.new_version }}
find: 'v'
replace: ''
- name: "Update NPM version ${{ matrix.package }}"
uses: reedyuk/[email protected]
with:
version: ${{ steps.make_package_version.outputs.value }}
version: ${{ needs.semantic-release.outputs.new_version }}
package: ./packages/${{ matrix.package }}
- name: NPM Publish ${{ matrix.package }}
uses: JS-DevTools/npm-publish@v2
Expand Down

0 comments on commit 4ee6f4f

Please sign in to comment.