Skip to content

build: fix publish

build: fix publish #2

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- master
jobs:
publish-npm:
name: Publish packages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PNPM
uses: pnpm/action-setup@v2.0.1
with:
version: 8.1.1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Publish
run: pnpm dlx semantic-release --branches master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}