Skip to content

Commit

Permalink
ci: ethers v5 publish
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Aug 1, 2024
1 parent 102cacc commit 3d4cd68
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish NPM package
on:
workflow_dispatch:
inputs:
ref:
description: "ref or tag to publish NPM package from"
default: ""
required: false
tag:
required: true
type: choice
description: package tag
default: latest
options:
- latest
- beta
- ethers-v5-latest
- ethers-v5-beta
jobs:
zksync:
name: Publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Build package and publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install
npm run types
npm run build
npm publish --tag ${{ inputs.tag }}

0 comments on commit 3d4cd68

Please sign in to comment.