Skip to content

Publish Superfluid Token List package to NPM #3

Publish Superfluid Token List package to NPM

Publish Superfluid Token List package to NPM #3

Workflow file for this run

# Inspired by: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry & https://pnpm.io/continuous-integration#github-actions
name: Publish Superfluid Token List package to NPM
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
scope: "@superfluid-finance"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build package
run: pnpm build:package
- name: Publish package
run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}