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
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules

# ide
.idea
.vscode

# yarn
yarn-error.log
.yarn/

# OS
.DS_Store
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: node-modules
enableScripts: false
32 changes: 18 additions & 14 deletions build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,39 @@ inputs:
node-version:
description: 'Node.js version'
default: '22.x'
os:
description: 'OS name'
default: 'ubuntu-latest'
runs:
using: 'composite'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable Corepack
if: ${{ startsWith(inputs.os, 'windows') }}
shell: bash
run: corepack enable --install-directory 'C:\npm\prefix'

- name: Enable Corepack
if: ${{ !startsWith(inputs.os, 'windows') }}
shell: bash
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ inputs.node-version }}

- name: Cache Yarn
uses: actions/cache@v3
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: "yarn"

- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile
run: yarn install --immutable --check-cache --check-resolutions

- name: Run tests
shell: bash
run: yarn test
run: yarn run test

- name: Build
shell: bash
run: yarn build
run: yarn run build
30 changes: 17 additions & 13 deletions lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,35 @@ inputs:
node-version:
description: 'Node.js version'
default: '22.x'
os:
description: 'OS name'
default: 'ubuntu-latest'
runs:
using: 'composite'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable Corepack
if: ${{ startsWith(inputs.os, 'windows') }}
shell: bash
run: corepack enable --install-directory 'C:\npm\prefix'

- name: Enable Corepack
if: ${{ !startsWith(inputs.os, 'windows') }}
shell: bash
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ inputs.node-version }}

- name: Cache Yarn
uses: actions/cache@v3
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: "yarn"

- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile
run: yarn install --immutable --check-cache --check-resolutions

- name: Run lint
shell: bash
run: yarn lint
run: yarn run lint
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ton/toolchain",
"version": "1.5.0",
"version": "1.6.0",
"description": "Toolchain for development",
"author": "TonTech",
"license": "MIT",
Expand All @@ -25,7 +25,6 @@
"lint:fix": "eslint . --fix",
"test": "yarn lint"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
"dependencies": {
"@eslint/js": "^9.27.0",
"@typescript-eslint/eslint-plugin": "^8.32.1",
Expand All @@ -39,5 +38,6 @@
},
"devDependencies": {
"typescript": "^5.8.3"
}
},
"packageManager": "yarn@4.9.2+sha512.1fc009bc09d13cfd0e19efa44cbfc2b9cf6ca61482725eb35bbc5e257e093ebf4130db6dfe15d604ff4b79efd8e1e8e99b25fa7d0a6197c9f9826358d4d65c3c"
}
Loading