Skip to content

Commit

Permalink
Create npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie authored Jan 10, 2024
1 parent 77c4049 commit e24dbfd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Node.js Package

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

jobs:
linux-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- run: npx pkg --options "no-warnings" -t node18-linux-x64 cli-dist.js -o ckb-transaction-dumper
- run: tar czf ckb-transaction-dumper_${{ github.ref_name }}_linux_x86_64.tar.gz ckb-transaction-dumper README.md LICENSE
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ckb-transaction-dumper_${{ github.ref_name }}_linux_x86_64.tar.gz

0 comments on commit e24dbfd

Please sign in to comment.