Skip to content

更新版本

更新版本 #4

Workflow file for this run

name: Publish to NPM
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm test
- name: Run integration tests
if: false
run: npm run integration
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
RESERVOIR_API_KEY: ${{ secrets.RESERVOIR_API_KEY }}
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}