Skip to content

Commit

Permalink
Changeset (#960)
Browse files Browse the repository at this point in the history
* Old scripts removed

* Changeset configuration

* Step names

* Changelog format compible with changeset

* Commit parameter to false

* Step job name updated

* Tests added to release workflow
  • Loading branch information
0xp3gasus authored Dec 20, 2023
1 parent c9442e6 commit 5d1d6a4
Show file tree
Hide file tree
Showing 41 changed files with 3,026 additions and 2,132 deletions.
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"updateInternalDependents": "always"
},
"ignore": []
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
name: Test Commit
name: Build and test workflow

on:
pull_request:
types: [opened, synchronize]
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'
node-version: "20.x"

- name: Cache Yarn packages
uses: actions/cache@v2
with:
path: '**/node_modules'
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Deps

- name: Install dependencies
run: yarn && yarn yarn-audit-ci --high
- name: Build Packages

- name: Build packages
run: yarn build

- name: Build examples
run: yarn build:examples

- name: Lint
run: yarn lint

- name: Test
run: yarn test
env:
CI: true
BLOCKCHAIR_API_KEY: ${{ secrets.BLOCKCHAIR_API_KEY }}
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release workflow

on:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Install dependencies
run: yarn install

- name: Build packages
run: yarn build

- name: Test
run: yarn test

- name: Create release pull request or publish to npm
uses: changesets/action@v1
with:
version: yarn increase-packages
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
"test": "lerna run test",
"e2e": "lerna run e2e",
"lint": "lerna run lint",
"updateDeps": " ts-node scripts/updateDeps.ts",
"updatePackages": "python3 scripts/updatePackageVersion.py ./packages",
"checkVersion": "ts-node scripts/checkVersionPublished.ts ./packages"
"update-packages": "yarn changeset",
"increase-packages": "yarn changeset version"
},
"husky": {
"hooks": {
Expand All @@ -27,6 +26,7 @@
"crypto-js": "4.2.0"
},
"devDependencies": {
"@changesets/cli": "2.27.1",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
Expand All @@ -53,4 +53,4 @@
"typescript": "^5.0.4",
"yarn-audit-ci": "^1.2.0"
}
}
}
18 changes: 10 additions & 8 deletions packages/xchain-arbitrum/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# v0.1.3 (2023-12-12)
# Changelog

## Update
## v0.1.3 (2023-12-12)

### Update

- Client dependency increased to 0.16.0
- Evm client dependency increased to 0.4.3
- Evm providers dependency increased to 0.1.5

# v0.1.2 (2023-12-11)
## v0.1.2 (2023-12-11)

## Update
### Update

- Client and EVM client packages update

# v0.1.1 (2023-11-16)
## v0.1.1 (2023-11-16)

## Update
### Update

- Created method getAddressAsync

# v.0.1.0 (2022-10-13)
## v.0.1.0 (2022-10-13)

## Update
### Update

- Arbitrum package first release

Loading

0 comments on commit 5d1d6a4

Please sign in to comment.