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
14 changes: 8 additions & 6 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
name: NPM Package Publish

on:
on:
workflow_dispatch:
release:
types: [created]

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/coinselect",
"version": "3.1.17",
"version": "3.1.18",
"description": "A transaction input selection module for bitcoin.",
"keywords": [
"coinselect",
Expand All @@ -16,9 +16,9 @@
"optimizing",
"bitcoin"
],
"homepage": "https://github.com/bitcoinjs/coinselect",
"homepage": "https://github.com/OneKeyHQ/coinselect",
"bugs": {
"url": "https://github.com/bitcoinjs/coinselect/issues"
"url": "https://github.com/OneKeyHQ/coinselect/issues"
},
"license": "MIT",
"author": "Daniel Cousens",
Expand All @@ -37,7 +37,7 @@
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/bitcoinjs/coinselect.git"
"url": "https://github.com/OneKeyHQ/coinselect.git"
},
"scripts": {
"coverage": "nyc --exclude='third-party/**' --check-coverage --branches 90 --functions 95 tape test/*.js",
Expand Down
Loading