-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: refactor for multiformats (#2)
BREAKING CHANGE! * feat: migrate code * wip: needs more coverage * fix: make clean Uint8Array * fix: 100% coverage, backing out error swallowing * build: automated releases * fix: linter fixes * chore: pull in Uint8Array|Buffer test Not strictly necessary but this test was added to ipld-dag-cbor and it's nice for completeness and holds us strictly to the promise of Uint8Arrays being the primary byte holder Ref: ipld/js-ipld-dag-cbor#129 * fix: move constants to top * fix: upgrade to latest ESM version Co-authored-by: Rod Vagg <rod@vagg.org>
- Loading branch information
Showing
9 changed files
with
194 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: [push, pull_request] | ||
name: Build, test and maybe publish | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Cache node_modules | ||
id: cache-modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: Build | ||
if: steps.cache-modules.outputs.cache-hit != 'true' | ||
run: npm install | ||
- name: Test | ||
run: npm test | ||
- name: Publish | ||
if: github.ref == 'refs/heads/master' && github.repository == 'ipld/js-dag-cbor' | ||
uses: mikeal/merge-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
docs | ||
package-lock.json | ||
yarn.lock | ||
.nyc_output | ||
# Logs | ||
logs | ||
*.log | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.