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/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and release - staging
name: Build and test - staging

on:
pull_request:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/create-prerelease-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ name: Build and release - staging
on:
push:
branches:
- main
- dev/*
- develop/*
- develop

jobs:
build-and-test:
Expand Down Expand Up @@ -64,6 +62,9 @@ jobs:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Prepare prerelease semantic
if: github.ref != 'refs/heads/main'
run: mv .releaserc.prerelease.yaml .releaserc.yaml
Expand Down
91 changes: 91 additions & 0 deletions .github/workflows/create-release-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Build and release

on:
push:
branches:
- main

jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
environment: test
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm test

semantic-release:
needs: build-and-test
if: "!contains(github.event.head_commit.message, '[skip ci]')"

name: Semantic Release
runs-on: ubuntu-latest
environment: staging
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic # Need an `id` for output variables
with:
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/github
@semantic-release/npm
env:
GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Do something when a new release published
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
91 changes: 91 additions & 0 deletions .github/workflows/dryrun-release-ci-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Build and release - staging

on:
pull_request:

jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
environment: test
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm test

semantic-release:
needs: build-and-test
if: "!contains(github.event.head_commit.message, '[skip ci]')"

name: Semantic Release
runs-on: ubuntu-latest
environment: staging
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Prepare prerelease semantic
if: github.ref != 'refs/heads/main'
run: mv .releaserc.prerelease.yaml .releaserc.yaml

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic # Need an `id` for output variables
with:
dry_run: true
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/github
@semantic-release/npm
env:
GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Do something when a new release published
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ${{ steps.semantic.outputs.new_release_version }}
echo ${{ steps.semantic.outputs.new_release_major_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
10 changes: 1 addition & 9 deletions .releaserc.prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,5 @@ plugins:
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- main
- name: dev/*
prerelease: "beta"
- name: develop/*
prerelease: 'beta'
- name: hotfix/*
prerelease: '${name.replace(/^hotfix\//g, "fix-").replace(/\//g, "-")}'
- name: fix/*
prerelease: '${name.replace(/^fix\//g, "fix-").replace(/\//g, "-")}'
- name: feat/init
- name: develop
prerelease: 'beta'
1 change: 0 additions & 1 deletion .releaserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- "@semantic-release/git"
- "@semantic-release/github"
- "@semantic-release/npm"

Expand Down
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import tseslint from "typescript-eslint";


export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: {...globals.browser, ...globals.node} }},
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
2 changes: 1 addition & 1 deletion lib/hypercerts-api
Submodule hypercerts-api updated 124 files
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hypercerts-org/sdk",
"version": "2.0.0-alpha.37",
"version": "2.1.1",
"description": "SDK for hypercerts protocol",
"repository": "git@github.com:hypercerts-org/hypercerts-sdk.git",
"author": "Hypercerts team",
Expand All @@ -22,7 +22,7 @@
],
"dependencies": {
"@graphql-typed-document-node/core": "^3.2.0",
"@hypercerts-org/contracts": "2.0.0-alpha.7",
"@hypercerts-org/contracts": "2.0.0-alpha.9",
"@openzeppelin/merkle-tree": "^1.0.7",
"@swc/core": "^1.6.3",
"ajv": "^8.11.2",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

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

Loading