Skip to content

npm publish

npm publish #4

Workflow file for this run

name: npm publish
on:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install protobuf compiler
run: sudo apt-get update && sudo apt-get install -y -qq protobuf-compiler
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: Install npm dependencies
run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm publish --recursive --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_CONFIG_PROVENANCE: true