Skip to content
Open
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
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- "**"
tags:
- "v*"
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,7 +21,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
- name: Make version
run: make -v
- name: Install dependencies
Expand Down Expand Up @@ -49,7 +52,7 @@ jobs:
path: .
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
- run: npm i
- run: npm run test
release:
Expand All @@ -63,9 +66,7 @@ jobs:
path: .
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24'
registry-url: 'https://registry.npmjs.org/'
- run: npm pack
- run: npm publish *.tgz
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish *.tgz --access public
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"name": "@tracsystems/blake3",
"version": "0.0.15",
"version": "0.0.16",
"scripts": {
"build": "make",
"clean": "make clean",
"build:docker": "docker build -t blake3-build . && docker run --rm -v $(pwd):/build blake3-build bash -c 'npm install && npm run build'",
"test": "mocha \"test/**/*.test.js\""
},
"repository": {
"type": "git",
"url": "https://github.com/Trac-Systems/blake3"
},
"react-native": "dist/wasm/blake3_rn.js",
"main": "dist/wasm/blake3.js",
"browser": "dist/wasm/blake3.mjs",
Expand All @@ -27,5 +31,9 @@
"devDependencies": {
"chai": "^5.2.1",
"mocha": "^11.7.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
}
}