-
-
Notifications
You must be signed in to change notification settings - Fork 127
26 lines (24 loc) 路 619 Bytes
/
Copy pathpublish.yml
File metadata and controls
26 lines (24 loc) 路 619 Bytes
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
name: Publish to NPM
on:
workflow_call:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build 馃敡
run: pnpm install && pnpm run build
- name: Publish package on NPM
run: pnpm publish