Skip to content

Commit

Permalink
chore: add npm workflow (PundiAI#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code authored Mar 22, 2024
1 parent a547b50 commit 77a52d1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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: Publish Package to npm

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: |
cd solidity
yarn install
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
10 changes: 6 additions & 4 deletions solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fxcore-solidity",
"name": "fx-contracts",
"description": "Smart Contract library for Solidity",
"version": "0.1.2",
"version": "0.7.0",
"files": [
"/contracts/**/*.sol",
"package.json",
Expand All @@ -17,9 +17,10 @@
},
"keywords": [
"solidity",
"ethereum",
"evm",
"crosschain",
"staking"
"staking",
"bridge call"
],
"publishConfig": {
"access": "public",
Expand All @@ -32,6 +33,7 @@
"bugs": {
"url": "https://github.com/FunctionX/fx-core/issues"
},
"homepage": "https://github.com/FunctionX/fx-core/blob/main/solidity/README.md",
"license": "Apache-2.0",
"dependencies": {
"@ethers-ext/signer-ledger": "^6.0.0-beta.1",
Expand Down

0 comments on commit 77a52d1

Please sign in to comment.