Skip to content

Pkg - Up deps, fix ts7056 typegen warn #17

Pkg - Up deps, fix ts7056 typegen warn

Pkg - Up deps, fix ts7056 typegen warn #17

Workflow file for this run

name: Publish to NPM
on:
push:
tags: ['v*']
workflow_dispatch:
jobs:
tests-workflow:
uses: ./.github/workflows/tests.yml
publish:
needs: tests-workflow
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
- name: Build Notivue
run: pnpm -C packages/notivue run build
- name: Copy README and LICENSE
run: cp README.md LICENSE packages/notivue
- name: Pack and verify
run: cd packages/notivue && rm -rf *.tgz && npm pack && ./scripts/verify-tarball.sh
- name: Publish
run: cd packages/notivue && npm publish *.tgz --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}