Skip to content

Commit f20cd3a

Browse files
committed
Add npm trusted publishing workflow
1 parent d69b591 commit f20cd3a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Publish package to the npm registry
2+
name: Publish Package
3+
4+
on:
5+
# Run the workflow when a new tag is pushed starting with `v`
6+
# push:
7+
# tags:
8+
# - 'v*'
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
permissions:
14+
id-token: write
15+
contents: read
16+
17+
jobs:
18+
publish:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v6
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
- name: Set up Node
26+
uses: actions/setup-node@v6
27+
with:
28+
node-version: 24
29+
cache: 'pnpm'
30+
registry-url: 'https://registry.npmjs.org'
31+
- name: Install dependencies
32+
run: pnpm install
33+
- name: Build
34+
run: pnpm --dir packages/create-vue-lib run build
35+
- name: Publish
36+
run: pnpm --dir packages/create-vue-lib publish

0 commit comments

Comments
 (0)