Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
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
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: CI
on:
pull_request:
push:
branches: [main]
branches:
- minswap

jobs:
build:
runs-on: ubuntu-latest
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/pump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bump Version on Merge

on:
push:
branches:
- minswap

jobs:
bump_version:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Calculate Next Version
run: |
# Get the latest version from NPM
LATEST_VERSION=$(npm view @minswap/translucent version)

# Calculate and append the next version directly into GITHUB_ENV in one line
echo "NEXT_VERSION=$(echo "$LATEST_VERSION" | awk -F'[-.]' '{print $1"."$2"."$3"-minswap."$5+1}')" >> "$GITHUB_ENV"

- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Install Dependencies
run: |
cd packages/translucent
pnpm install

- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"

- name: Bump Version and Publish
run: |
./scripts/pump-version.sh ${{ env.NEXT_VERSION }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ uplc/target
.env.*
seed.txt
package-lock.json
.vscode/
.vscode/
packages/translucent/build
Binary file modified bun.lockb
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/translucent-blueprint/cli.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/translucent-blueprint/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/translucent-blueprint/package.json

This file was deleted.

278 changes: 0 additions & 278 deletions packages/translucent-blueprint/src/blueprint.ts

This file was deleted.

26 changes: 0 additions & 26 deletions packages/translucent-blueprint/test/blueprint.test.ts

This file was deleted.

Loading