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
16 changes: 12 additions & 4 deletions .github/workflows/publish-dev.yml
Comment thread
krigga marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
environment: dev
steps:
- uses: actions/checkout@v3

- name: Enable Corepack
run: corepack enable

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18.x'
always-auth: true
- name: Install Yarn
run: npm install -g yarn

- name: Bump version
id: version
run: |
Expand All @@ -38,19 +41,24 @@ jobs:

NEW_VERSION="${NEW_BASE}-dev.${TIMESTAMP}.${COMMIT_SHA}"
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT

- name: Update package.json version
run: |
jq ".version = \"${{ steps.version.outputs.new_version }}\"" package.json > package.tmp
mv package.tmp package.json

- name: Install dependencies
run: yarn
run: yarn install

- name: Build
run: yarn build
run: yarn run build

- name: Setup .yarnrc.yml
run: |
yarn config set npmAuthToken $NPM_AUTH_TOKEN
yarn config set npmAlwaysAuth true
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish
run: yarn npm publish --access public --tag dev
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,29 @@ jobs:
environment: prod
steps:
- uses: actions/checkout@v3

- name: Enable Corepack
run: corepack enable

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18.x'
always-auth: true
- name: Install Yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn
run: yarn install

- name: Build
run: yarn build
run: yarn run build

- name: Setup .yarnrc.yml
run: |
yarn config set npmAuthToken $NPM_AUTH_TOKEN
yarn config set npmAlwaysAuth true
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: the-ton-tech/toolchain/lint@v1.4.0
- uses: the-ton-tech/toolchain/lint@v1.6.0
build:
needs: lint
runs-on: ${{ matrix.os }}
Expand All @@ -43,4 +43,6 @@ jobs:
- macos-15
name: Test & Build on ${{ matrix.os }}
steps:
- uses: the-ton-tech/toolchain/build@v1.4.0
- uses: the-ton-tech/toolchain/build@v1.6.0
with:
os: ${{ matrix.os }}
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@ dist
coverage/

# yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log
.yarn/
942 changes: 0 additions & 942 deletions .yarn/releases/yarn-4.9.2.cjs

This file was deleted.

7 changes: 1 addition & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.9.2.cjs
enableScripts: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@ton/sandbox": "^0.37.1",
"@ton/tolk-js": "^1.0.0",
"@ton/ton": "^15.3.1",
"@ton/toolchain": "the-ton-tech/toolchain#v1.4.0",
"@ton/toolchain": "the-ton-tech/toolchain#v1.6.0",
"@types/inquirer": "^8.2.6",
"@types/jest": "^30.0.0",
"@types/node": "^20.2.5",
Expand Down
Loading