Skip to content

npm-publish

npm-publish #38

Workflow file for this run

name: npm-publish
on:
release:
types: [published]
workflow_dispatch:
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
jobs:
publish:
runs-on: snowbridge-runner
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Build Contracts
working-directory: contracts
run: |
forge build
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Build
working-directory: web
run: |
pnpm install
pnpm build
- name: Publish Contracts
working-directory: web/packages/contracts
run: |
pnpm publish --no-git-checks --access public
- name: Publish Contract Types
working-directory: web/packages/contract-types
run: |
pnpm publish --no-git-checks --access public
- name: Publish API
working-directory: web/packages/api
run: |
pnpm publish --no-git-checks --access public