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
65 changes: 65 additions & 0 deletions .github/workflows/e2e-naga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [naga, canary-naga]
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
build:
name: Build once
Expand Down Expand Up @@ -100,3 +104,64 @@ jobs:
- name: Run health check (${{ matrix.network }})
run: NETWORK=${{ matrix.network }} pnpm run test:e2e:ci -- packages/e2e/src/e2e.spec.ts --testNamePattern "^all "
timeout-minutes: 10

release:
name: Release
needs: e2e
runs-on: ubuntu-latest
if: github.event_name == 'push' && needs.e2e.result == 'success'
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

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}

- uses: actions/setup-node@v4
with:
node-version: 22.18.0
registry-url: https://registry.npmjs.org
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- name: Enable corepack + pin pnpm
run: |
corepack enable
corepack prepare pnpm@9.15.0 --activate

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rust-std

- uses: jetli/wasm-pack-action@v0.4.0
with:
version: latest

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm run build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
branch: ${{ github.ref_name }}
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 }}
120 changes: 0 additions & 120 deletions .github/workflows/release.yml

This file was deleted.

Loading