Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
codev911 committed Oct 18, 2024
1 parent ceb8f35 commit f8d6955
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 39 deletions.
71 changes: 33 additions & 38 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
name: Publish npm Package
name: Publish to npm

on:
push:
tags:
- 'v*.*.*'
release:
types: [published]

jobs:
build-and-publish:
publish:
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# Set up Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22' # Use the appropriate Node.js version
cache: 'npm' # Cache node_modules

# Install dependencies
- name: Install dependencies
run: npm install

# Generate chainlist data
- name: Generate list chain data
run: npm run generate:chain

# Build the project
- name: Build the project
run: npm run build

# Testung the project
- name: Testing the project
run: npm run test

# Publish to npm
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Use the secret you added earlier
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22' # specify node version 22
registry-url: 'https://registry.npmjs.org/'

# Install dependencies
- name: Install dependencies
run: npm install

# Generate chainlist data
- name: Generate list chain data
run: npm run generate:chain

# Build the project
- name: Build the project
run: npm run build

# Testung the project
- name: Testing the project
run: npm run test

- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "live-evm-rpc",
"description": "Get Public Live EVM RPC url easily",
"author": "codev911",
"version": "1.2.2",
"version": "1.2.3",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit f8d6955

Please sign in to comment.