Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 04d0ad0

Browse files
committed
ci: must use same oci URI package as 0.2
Limited by wkg registry discovery for downstream wkg build
1 parent a727829 commit 04d0ad0

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/publish-0.3.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: meta
3838
uses: docker/metadata-action@v5
3939
with:
40-
images: ghcr.io/webassembly/wasi/random-0.3.0
40+
images: ghcr.io/webassembly/wasi/random
4141
tags: |
4242
type=semver,pattern={{version}}
4343
@@ -57,7 +57,7 @@ jobs:
5757
id: publish
5858
uses: bytecodealliance/wkg-github-action@v5
5959
with:
60-
oci-reference-without-tag: "ghcr.io/webassembly/wasi/random-0.3.0"
60+
oci-reference-without-tag: "ghcr.io/webassembly/wasi/random"
6161
file: "${{ github.event.repository.name }}-0.3.0.wasm"
6262
description: "A WASI API for reading the current time and measuring elapsed time (0.3.0 version)."
6363
source: 'https://github.com/webassembly/wasi'
@@ -67,4 +67,4 @@ jobs:
6767

6868
# Sign the output component
6969
- name: Sign the wasm component
70-
run: cosign sign --yes ghcr.io/webassembly/wasi/random-0.3.0@${{ steps.publish.outputs.digest }}
70+
run: cosign sign --yes ghcr.io/webassembly/wasi/random@${{ steps.publish.outputs.digest }}

.github/workflows/update-0.3.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,10 @@ jobs:
4949
# Update version in WIT definitions
5050
- name: Update version in WIT files
5151
run: |
52+
# Update @since version annotations
5253
find wit-0.3.0-draft -name "*.wit" -exec sed -i "s/\(@since(version = \)[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\(-[0-9]\+\)\?\)\?\()\)/\1${{ steps.version.outputs.value }}\4/g" {} +
53-
find wit-0.3.0-draft -name "*.wit" -exec sed -i "s/\(package wasi:[a-zA-Z0-9_-]\+@\)[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\(-[0-9]\+\)\?\)\?/\1${{ steps.version.outputs.value }}/g" {} +
54-
55-
- name: Update wit deps
56-
run: |
57-
cd wit-0.3.0-draft
58-
wit-deps update || true # Continue even if no deps to update
54+
# Update all wasi package references (package, use, import, export, from)
55+
find wit-0.3.0-draft -name "*.wit" -exec sed -i "s/\( wasi:[a-zA-Z0-9_/-]\+@\)[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\(-[0-9]\+\)\?\)\?/\1${{ steps.version.outputs.value }}/g" {} +
5956
6057
# Create PR with changes using create-pull-request action
6158
- name: Create Pull Request

0 commit comments

Comments
 (0)