Skip to content

Publish USE to NPM

Publish USE to NPM #43

Workflow file for this run

name: Publish USE to NPM
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
env:
NPM_CONFIG_PROVENANCE: true
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Enable Corepack
run: |
corepack enable
corepack pnpm install
- name: Build project
run: pnpm run build-lib
- name: Publish composables
run: npm publish --provenance --access public
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}