Skip to content

Commit

Permalink
Merge branch 'main' into fix-transaction-not-found
Browse files Browse the repository at this point in the history
  • Loading branch information
bafu committed Jan 10, 2024
2 parents 7143152 + d064718 commit d8cf7a0
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build npm package

on:
push:
branches:
- 'feature-*'
- 'fix-*'
pull_request:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- run: yarn build
41 changes: 41 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will build and publish a package to npmjs when a version release is created
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-using-yarn

name: Publish Package to npmjs

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@numbersprotocol'

- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build

- name: Publish to npm
run: yarn publish --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

To check the difference between the last releaes and the latest dev status, click the link above.

## [1.6.0] - 2023-10-03

### Added

1. Add initial registration action for IOTA.

## [1.5.0] - 2023-06-15

### Changed

1. [PR26](https://github.com/numbersprotocol/nit/pull/26): Remove default license from Asset Tree
1. [PR27](https://github.com/numbersprotocol/nit/pull/27): Remove default empty abstract without input

## [1.4.0] - 2023-05-02

### Added
Expand Down Expand Up @@ -37,7 +50,9 @@ To check the difference between the last releaes and the latest dev status, clic

1. Change default network in registration action from Avalanche to Jade

[unreleased]: https://github.com/numbersprotocol/capture-lite/compare/1.4.0...HEAD
[unreleased]: https://github.com/numbersprotocol/capture-lite/compare/1.6.0...HEAD
[1.6.0]: https://github.com/numbersprotocol/capture-lite/compare/1.5.0...1.6.0
[1.5.0]: https://github.com/numbersprotocol/capture-lite/compare/1.4.0...1.5.0
[1.4.0]: https://github.com/numbersprotocol/capture-lite/compare/1.3.0...1.4.0
[1.3.0]: https://github.com/numbersprotocol/capture-lite/compare/1.2.9...1.3.0
[1.2.9]: https://github.com/numbersprotocol/capture-lite/releases/tag/1.2.9
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@numbersprotocol/nit",
"version": "1.4.0",
"version": "1.6.0",
"description": "git for web3 digital asset",
"main": "lib/nit.js",
"repository": "https://github.com/numbersprotocol/nit",
Expand Down
11 changes: 11 additions & 0 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ export const ActionSet = {
"type": "new"
}
},
"action-initial-registration-iota": {
nid: "bafkreibnyl3ohbx76rzxmdzfyayvztjcqgjv745wh4t3z6a4ung43xd554",
content: {
"networkActionName": "initial registration",
"blockchain": "iota",
"tokenAddress": "",
"provider": "bafkreigrt5tepycewppysdwcjccdkdvvc2ztelqv64idgautq52g3vfh4i",
"abstract": "Register asset to the Numbers network",
"type": "new"
}
},

"action-commit": {
nid: "bafkreiceiqfe4w4g4j46rsi4h4tbqu35ivewfxm4q743tfmegscpg7d63m",
Expand Down

0 comments on commit d8cf7a0

Please sign in to comment.