mirror of
https://github.com/erhant/circomkit.git
synced 2026-04-13 03:00:27 -04:00
35 lines
622 B
YAML
35 lines
622 B
YAML
name: npm
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 9
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --no-frozen-lockfile
|
|
|
|
- name: Build package
|
|
run: pnpm build
|
|
|
|
- uses: JS-DevTools/npm-publish@v3
|
|
id: publish
|
|
with:
|
|
token: ${{ secrets.NPM_TOKEN }}
|