Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Jun 27, 2024
1 parent 1989d5c commit 97bfeda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

name: Publish to NPM
on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
- name: Checkout
uses: actions/checkout@v4

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies 🔧
run: npm install

- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"dependencies": {
"bitcoinjs-lib": "^6.1.6",
"bitcoinjs-message": "^2.0.0",
"bip39": "^2.5.0",
"bs58check": "^2.1.2"
"bitcoinjs-message": "^2.2.0",
"bip39": "^3.1.0",
"bs58check": "^4.0.0"
},
"author": "FDK",
"repository": {
Expand Down

0 comments on commit 97bfeda

Please sign in to comment.