diff --git a/.changeset/clever-hairs-hope.md b/.changeset/clever-hairs-hope.md new file mode 100644 index 000000000..d9194f8e3 --- /dev/null +++ b/.changeset/clever-hairs-hope.md @@ -0,0 +1,19 @@ +--- +'@lit-protocol/access-control-conditions': patch +'@lit-protocol/access-control-conditions-schemas': patch +'@lit-protocol/auth': patch +'@lit-protocol/auth-helpers': patch +'@lit-protocol/auth-services': patch +'@lit-protocol/constants': patch +'@lit-protocol/crypto': patch +'@lit-protocol/lit-client': patch +'@lit-protocol/logger': patch +'@lit-protocol/networks': patch +'@lit-protocol/schemas': patch +'@lit-protocol/types': patch +'@lit-protocol/wasm': patch +'@lit-protocol/wrapped-keys': patch +'@lit-protocol/wrapped-keys-lit-actions': patch +--- + +reset naga-dev contract addresses and add naga-staging network diff --git a/.changeset/cute-bottles-ask.md b/.changeset/cute-bottles-ask.md index ebaf21886..4b02864b1 100644 --- a/.changeset/cute-bottles-ask.md +++ b/.changeset/cute-bottles-ask.md @@ -12,8 +12,6 @@ '@lit-protocol/schemas': major '@lit-protocol/types': major '@lit-protocol/wasm': major -'@lit-protocol/wrapped-keys': major -'@lit-protocol/wrapped-keys-lit-actions': major --- first naga beta release diff --git a/.changeset/cute-experts-clap.md b/.changeset/cute-experts-clap.md index 193101655..e1177d088 100644 --- a/.changeset/cute-experts-clap.md +++ b/.changeset/cute-experts-clap.md @@ -12,8 +12,6 @@ '@lit-protocol/schemas': patch '@lit-protocol/types': patch '@lit-protocol/wasm': patch -'@lit-protocol/wrapped-keys': patch -'@lit-protocol/wrapped-keys-lit-actions': patch --- Initial version after networks unification diff --git a/.changeset/cyan-bears-invent.md b/.changeset/cyan-bears-invent.md index c0bb60ee6..35ca5fb19 100644 --- a/.changeset/cyan-bears-invent.md +++ b/.changeset/cyan-bears-invent.md @@ -12,8 +12,6 @@ '@lit-protocol/schemas': patch '@lit-protocol/types': patch '@lit-protocol/wasm': patch -'@lit-protocol/wrapped-keys': patch -'@lit-protocol/wrapped-keys-lit-actions': patch --- Initial release for networks unification diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index dc7a7847d..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "mode": "pre", - "tag": "beta", - "initialVersions": { - "@lit-protocol/access-control-conditions": "7.0.0", - "@lit-protocol/access-control-conditions-schemas": "7.0.0", - "@lit-protocol/auth": "7.0.0", - "@lit-protocol/auth-helpers": "7.0.0", - "@lit-protocol/auth-services": "1.0.0", - "@lit-protocol/constants": "7.0.0", - "@lit-protocol/crypto": "7.0.0", - "@lit-protocol/lit-client": "7.0.0", - "@lit-protocol/logger": "7.0.0", - "@lit-protocol/networks": "7.0.0", - "@lit-protocol/schemas": "7.0.0", - "@lit-protocol/types": "7.0.0", - "@lit-protocol/wasm": "7.0.0", - "@lit-protocol/wrapped-keys": "7.0.0", - "@lit-protocol/wrapped-keys-lit-actions": "7.0.0" - }, - "changesets": ["cute-bottles-ask", "cute-experts-clap", "cyan-bears-invent"] -} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 000000000..3d899730c --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,83 @@ +name: Prerelease Snapshot + +on: + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + publish: + name: Publish prerelease snapshot + runs-on: ubuntu-latest + env: + RELEASE_BRANCH_PREFIX: 'changeset-release/' + steps: + - name: Ensure Changesets release branch + run: | + if [[ "${GITHUB_REF_NAME}" != ${RELEASE_BRANCH_PREFIX}* ]]; then + echo "❌ This workflow must be triggered on a Changesets release branch. Current branch: ${GITHUB_REF_NAME}" + echo "👉 From the release PR, choose \"Run workflow\" and keep the default branch (changeset-release/...)." + exit 1 + fi + + - name: Check NPM Token + run: | + if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then + echo "❌ NODE_AUTH_TOKEN secret is not set. Please add it to repository secrets." + exit 1 + else + echo "✅ NODE_AUTH_TOKEN secret is available." + fi + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure git user + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install rust + uses: dtolnay/rust-toolchain@1.76.0 + + - name: Install wasm-pack + uses: jetli/wasm-pack-action@v0.4.0 + with: + version: 'latest' + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '22.18.0' + registry-url: 'https://registry.npmjs.org' + + - name: Install project dependencies + run: bun install --frozen-lockfile + + - name: Apply snapshot versions + run: bunx changeset version --snapshot beta + + - name: Build workspace + env: + NX_DAEMON: 'false' + run: bun run build + + - name: Publish prerelease packages + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + run: bunx changeset publish --tag beta + + - name: Reset working tree + if: always() + run: | + git reset --hard HEAD + git clean -fd diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..354b38960 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,92 @@ +name: Release +on: + push: + branches: + - naga + - canary-naga + +permissions: + # allow pushing commits, creating tags, and modifying repo files + # needed for the workflow to update package.json versions and CHANGELOG files + contents: write + pull-requests: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Check NPM Token + run: | + if [ -z "${{ secrets.NODE_AUTH_TOKEN }}" ]; then + echo "❌ NODE_AUTH_TOKEN secret is not set. Please add it to repository secrets." + exit 1 + else + echo "✅ NODE_AUTH_TOKEN secret is available." + fi + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # Enable this after PNPM migration + # - name: Setup PNPM + # uses: pnpm/action-setup@v4 + # with: + # version: 9.15.0 + + # TODO: Disable this after PNPM migration + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install rust + uses: dtolnay/rust-toolchain@1.76.0 + + - name: Install wasm-pack + uses: jetli/wasm-pack-action@v0.4.0 + with: + version: 'latest' + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '22.18.0' + registry-url: 'https://registry.npmjs.org' + + - name: Install project dependencies + run: bun install --frozen-lockfile + # Enable this after PNPM migration + # run: pnpm install --frozen-lockfile + + - name: Check current pre-release mode + run: | + if [ -f ".changeset/pre.json" ]; then + echo "📋 Current pre-release mode status:" + cat .changeset/pre.json | jq '{ mode: .mode, tag: .tag }' + else + echo "📋 Not in pre-release mode" + fi + + - name: Build + env: + NX_DAEMON: 'false' + run: bun run build + # Enable this after pnpm migration + # run: pnpm build + + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 + with: + version: bunx changeset version + publish: bunx changeset publish --access public + # Enable this after pnpm migration + # version: pnpm changeset version + # publish: pnpm changeset publish --access public + commit: 'chore(release): version packages' + title: 'chore(release): version packages' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}