-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 945 Bytes
/
published.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish package to GitHub Packages
on:
workflow_dispatch:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: 🛠️ Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: "pnpm"
registry-url: 'https://npm.pkg.github.com'
- name: 🧩 Install dependencies
run: pnpm install --frozen-lockfile --prod=false
- name: 🏗️Run Build
run: pnpm run build
- name: 📦 Publish package
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}