Skip to content

Publish to npmjs

Publish to npmjs #13

Workflow file for this run

name: Publish packages to npmjs
on:
workflow_dispatch:
concurrency:
group: "publish"
cancel-in-progress: true
jobs:
publish:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
matrix:
package: [ client-wasm, client-core, client-payments, client-vms, client-react-hooks ]
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: "https://registry.npmjs.org"
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- env:
NODE_AUTH_TOKEN:
${{ secrets.NPM_TOKEN }}
run: |
npm ci
just publish-${{ matrix.package }} "--tag latest"