Skip to content

chore: release v2.0.0-beta #53

chore: release v2.0.0-beta

chore: release v2.0.0-beta #53

Workflow file for this run

name: Publish to npm
on:
workflow_dispatch:
push:
tags:
- "v*"
permissions:
contents: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: true
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build the package
run: pnpm build
- name: Create Release with Changelog
run: pnpx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm publish --dry-run
- uses: step-security/wait-for-secrets@v1
id: wait-for-secrets
with:
secrets: |
OTP:
name: 'OTP to publish package'
description: 'OTP from authenticator app'
- run: pnpm publish --otp ${{ steps.wait-for-secrets.outputs.OTP }} --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}