Skip to content

Merge pull request #5 from syfxlin/renovate/actions-setup-node-3.x #9

Merge pull request #5 from syfxlin/renovate/actions-setup-node-3.x

Merge pull request #5 from syfxlin/renovate/actions-setup-node-3.x #9

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@v4
- name: Setup PNPM
uses: pnpm/action-setup@v2.4.0
with:
version: 8.1.1
- name: Setup Node.js
uses: actions/setup-node@v3
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 }}