Skip to content

Commit

Permalink
Merge pull request #6 from Conflux-Chain/changeset
Browse files Browse the repository at this point in the history
chore: add changeset
  • Loading branch information
iosh authored Nov 20, 2024
2 parents d79d7dd + 778cf3a commit fda819e
Show file tree
Hide file tree
Showing 6 changed files with 675 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/ten-deers-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fluent-wallet/hw-app-conflux": minor
---

Added conflux 1559 support
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

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

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
},
"scripts": {
"clean": "rm -rf lib/",
"build": "yarn tsc -p tsconfig.json && tsc -m ES6 --outDir lib-es"
"build": "yarn tsc -p tsconfig.json && tsc -m ES6 --outDir lib-es",
"publish": "pnpm build && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@ledgerhq/hw-transport-mocker": "^6.29.4",
"js-conflux-sdk": "^2.4.11",
"ts-jest": "^27.1.1",
Expand Down
Loading

0 comments on commit fda819e

Please sign in to comment.