Skip to content

fix: add prepublishOnly script #1

fix: add prepublishOnly script

fix: add prepublishOnly script #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
permissions:
contents: read
id-token: write
steps:
- name: Checkout 🔔
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }} 🔧
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Install dependencies 🧹
run: npm ci
- name: Build 🔨
run: npm run build
- name: Publish 🎁
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}