Skip to content

Commit 3a66f16

Browse files
chore: changes to yarn (#305)
1 parent 1c5fedc commit 3a66f16

File tree

8 files changed

+750
-1685
lines changed

8 files changed

+750
-1685
lines changed

.github/workflows/publish-dev.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ jobs:
1212
environment: dev
1313
steps:
1414
- uses: actions/checkout@v3
15+
16+
- name: Enable Corepack
17+
run: corepack enable
18+
1519
- name: Use Node.js 18
1620
uses: actions/setup-node@v3
1721
with:
1822
node-version: '18.x'
1923
always-auth: true
20-
- name: Install Yarn
21-
run: npm install -g yarn
24+
2225
- name: Bump version
2326
id: version
2427
run: |
@@ -38,19 +41,24 @@ jobs:
3841
3942
NEW_VERSION="${NEW_BASE}-dev.${TIMESTAMP}.${COMMIT_SHA}"
4043
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
44+
4145
- name: Update package.json version
4246
run: |
4347
jq ".version = \"${{ steps.version.outputs.new_version }}\"" package.json > package.tmp
4448
mv package.tmp package.json
49+
4550
- name: Install dependencies
46-
run: yarn
51+
run: yarn install
52+
4753
- name: Build
48-
run: yarn build
54+
run: yarn run build
55+
4956
- name: Setup .yarnrc.yml
5057
run: |
5158
yarn config set npmAuthToken $NPM_AUTH_TOKEN
5259
yarn config set npmAlwaysAuth true
5360
env:
5461
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
62+
5563
- name: Publish
5664
run: yarn npm publish --access public --tag dev

.github/workflows/publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,29 @@ jobs:
1010
environment: prod
1111
steps:
1212
- uses: actions/checkout@v3
13+
14+
- name: Enable Corepack
15+
run: corepack enable
16+
1317
- name: Use Node.js 18
1418
uses: actions/setup-node@v3
1519
with:
1620
node-version: '18.x'
1721
always-auth: true
18-
- name: Install Yarn
19-
run: npm install -g yarn
22+
2023
- name: Install dependencies
21-
run: yarn
24+
run: yarn install
25+
2226
- name: Build
23-
run: yarn build
27+
run: yarn run build
28+
2429
- name: Setup .yarnrc.yml
2530
run: |
2631
yarn config set npmAuthToken $NPM_AUTH_TOKEN
2732
yarn config set npmAlwaysAuth true
2833
env:
2934
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
35+
3036
- name: Publish
3137
env:
3238
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/qa.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
name: Lint
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: the-ton-tech/toolchain/lint@v1.4.0
34+
- uses: the-ton-tech/toolchain/lint@v1.6.0
3535
build:
3636
needs: lint
3737
runs-on: ${{ matrix.os }}
@@ -43,4 +43,6 @@ jobs:
4343
- macos-15
4444
name: Test & Build on ${{ matrix.os }}
4545
steps:
46-
- uses: the-ton-tech/toolchain/[email protected]
46+
- uses: the-ton-tech/toolchain/[email protected]
47+
with:
48+
os: ${{ matrix.os }}

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,5 @@ dist
44
coverage/
55

66
# yarn
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/sdks
12-
!.yarn/versions
7+
yarn-error.log
8+
.yarn/

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 0 additions & 942 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
compressionLevel: mixed
2-
3-
enableGlobalCache: false
4-
51
nodeLinker: node-modules
6-
7-
yarnPath: .yarn/releases/yarn-4.9.2.cjs
2+
enableScripts: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@ton/sandbox": "^0.37.1",
3030
"@ton/tolk-js": "^1.0.0",
3131
"@ton/ton": "^15.3.1",
32-
"@ton/toolchain": "the-ton-tech/toolchain#v1.4.0",
32+
"@ton/toolchain": "the-ton-tech/toolchain#v1.6.0",
3333
"@types/inquirer": "^8.2.6",
3434
"@types/jest": "^30.0.0",
3535
"@types/node": "^20.2.5",

0 commit comments

Comments
 (0)