Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body:
If applicable, provide the version number or release tag where this
issue was encountered
options:
- v1.1.0
- v1.2.1
default: 0
validations:
required: false
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,14 @@ jobs:
with:
filters: |
code:
- '!docs/**'
- '!README.md'
- '!CHANGELOG.md'
- '!CONTRIBUTING.md'
- '!CODE_OF_CONDUCT.md'
- '!SECURITY.md'
- '!LICENSE.md'
- '!CONTRIBUTING.md'
- '!LICENSE'
- '!MAINTAINERS.md'
- '!CONTRIBUTORS.md'
- '!AUTHZ.md'
- '!API_SPEC.md'
- '!README.md'
- '!RELEASE.md'
- '!SECURITY.md'
- '!.gitignore'

- name: Determine result
Expand All @@ -67,8 +63,15 @@ jobs:
- changes
uses: ./.github/workflows/reusable-test-sdk.yaml
with:
image_repo: ghcr.io/agntcy
image_tag: ${{ github.sha }}
dir_chart_version: v1.2.0
dirctl_image_tag: v1.2.0

release:
name: Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs:
- test
uses: ./.github/workflows/reusable-release-sdk.yaml

success:
name: Success
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reusable-release-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: Release SDK

on:
workflow_call:
workflow_dispatch:

permissions:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/reusable-test-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ name: Test SDK
on:
workflow_call:
inputs:
image_repo:
dir_chart_version:
required: true
type: string
description: "Image repo to use."
image_tag:
description: "The version of the dir Helm chart to install for the tests."
dirctl_image_tag:
required: true
type: string
description: "Image tag to use."
description: "The tag of the dir-ctl Docker image to use in the tests."

permissions:
id-token: write
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Test JavaScript SDK
env:
CHART_VERSION: "0.0.0-latest"
IMAGE_TAG: latest
DIR_CHART_VERSION: ${{ inputs.dir_chart_version }}
DIRCTL_IMAGE_TAG: ${{ inputs.dirctl_image_tag }}
run: |
task sdk:test:javascript
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[agntcy/dir]: https://github.com/agntcy/dir
[agntcy/dir-sdk-javascript]: https://github.com/agntcy/dir-sdk-javascript

## 1.1.0 (2026-04-10)
## 1.2.1 (2026-04-15)

### Added

Expand Down
33 changes: 33 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Release

This document outlines the process of creating a new release
for the Directory JavaScript SDK.

## 1. Create a release branch

Create a branch for the new release:

1. Update the SDK version in:
- `package.json`
- `.github/ISSUE_TEMPLATE/bug_report.yml`
2. Update the dependencies if necessary:
- [@buf/agntcy_dir.bufbuild_es](https://buf.build/agntcy/dir/sdks/v1.2.0%3Abufbuild/es?version=v2.9.0) (Buf SDK)
- `.github/workflows/ci.yaml` (dir & dir-ctl version)
3. Add an entry to `CHANGELOG.md`

## 2. Create and push tags

After the release branch is merged, update your main branch:

```sh
git checkout main
git pull origin main
```

To trigger the release workflow, create and push the release tag
for the last commit:

```sh
git tag -a v1.2.1
git push origin v1.2.1
```
4 changes: 2 additions & 2 deletions Taskfile.deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ tasks:
internal: true
run: once
vars:
IMAGE_TAG: "{{ .IMAGE_TAG }}"
DIRCTL_IMAGE_TAG: "{{ .DIRCTL_IMAGE_TAG }}"
preconditions:
- which docker
cmds:
- docker image pull ghcr.io/agntcy/dir-ctl:{{.IMAGE_TAG}}
- docker image pull ghcr.io/agntcy/dir-ctl:{{ .DIRCTL_IMAGE_TAG }}
4 changes: 1 addition & 3 deletions Taskfile.test-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ tasks:
source /tmp/dir-htpasswd-creds.env

{{ .HELM_BIN }} install dir oci://ghcr.io/agntcy/dir/helm-charts/dir \
--version="{{ .CHART_VERSION }}" \
--set apiserver.image.tag="{{ .IMAGE_TAG }}" \
--version="{{ .DIR_CHART_VERSION }}" \
--set apiserver.image.pullSecrets="" \
--set apiserver.service.type="NodePort" \
--set apiserver.service.nodePort="{{.API_NODEPORT}}" \
Expand All @@ -100,7 +99,6 @@ tasks:
{{ if .DIRECTORY_SERVER_RATELIMIT_PER_CLIENT_RPS }}--set apiserver.config.ratelimit.per_client_rps="{{ .DIRECTORY_SERVER_RATELIMIT_PER_CLIENT_RPS }}"{{ end }} \
{{ if .DIRECTORY_SERVER_RATELIMIT_PER_CLIENT_BURST }}--set apiserver.config.ratelimit.per_client_burst="{{ .DIRECTORY_SERVER_RATELIMIT_PER_CLIENT_BURST }}"{{ end }} \
{{ if .DIRECTORY_SERVER_OASF_API_VALIDATION_SCHEMA_URL }}--set apiserver.config.oasf_api_validation.schema_url="{{ .DIRECTORY_SERVER_OASF_API_VALIDATION_SCHEMA_URL }}"{{ end }} \
--set apiserver.reconciler.image.tag="{{ .IMAGE_TAG }}" \
--set apiserver.reconciler.config.regsync.interval="10s" \
--set apiserver.reconciler.config.indexer.interval="10s" \
--set apiserver.reconciler.config.name.interval="5s" \
Expand Down
4 changes: 2 additions & 2 deletions Taskfile.vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
version: "3"

vars:
CHART_VERSION: '{{ .CHART_VERSION | default "0.0.0-latest" }}'
IMAGE_TAG: '{{ .IMAGE_TAG | default "latest" }}'
DIR_CHART_VERSION: '{{ .DIR_CHART_VERSION | default "0.0.0-latest" }}'
DIRCTL_IMAGE_TAG: '{{ .DIRCTL_IMAGE_TAG | default "latest" }}'
BIN_DIR: "{{ .ROOT_DIR }}/.bin"
HELM_VERSION: "4.1.3"
HELM_BIN: "{{ .BIN_DIR }}/helm-{{.HELM_VERSION}}"
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ tasks:
- task: sdk:test-env:create
- defer: { task: sdk:test-env:delete }
- |
export DIRCTL_IMAGE_TAG="{{ .DIRCTL_IMAGE_TAG }}"
export COSIGN_PATH="$(printf "%s" "${COSIGN_PATH:-{{ .COSIGN_BIN }}}")"
export DIRCTL_IMAGE_TAG="{{ .IMAGE_TAG }}"

# Run SDK tests
npm run test
Expand Down
18 changes: 5 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agntcy-dir",
"version": "1.1.0",
"version": "1.2.1",
"description": "Directory SDK",
"homepage": "https://github.com/agntcy/dir",
"bugs": {
Expand Down Expand Up @@ -41,8 +41,7 @@
},
"packageManager": "npm@11.12.1",
"dependencies": {
"@buf/agntcy_dir.bufbuild_es": "^2.9.0-20260319131759-f3a65f0dc151.1",
"@buf/bufbuild_protovalidate.bufbuild_es": "^2.11.0-20260209202127-80ab13bee0bf.1",
"@buf/agntcy_dir.bufbuild_es": "2.9.0-20260413212701-cb1fb6353ac1.1",
"@bufbuild/protobuf": "^2.9.0",
"@connectrpc/connect": "^2.1.0",
"@connectrpc/connect-node": "^2.1.0",
Expand Down
Loading