Skip to content

Commit eaf6f0b

Browse files
committed
ci: use npm trusted publishing
1 parent 0084c1d commit eaf6f0b

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
- run: corepack enable
20+
- uses: actions/setup-node@v5
21+
with:
22+
node-version: latest
23+
cache: pnpm
24+
registry-url: https://registry.npmjs.org
25+
26+
- run: pnpm config set registry https://registry.npmjs.org
27+
28+
- name: 📦 Install dependencies
29+
run: pnpm i
30+
31+
- name: 🚀 Publish package
32+
run: pnpm publish --access public --no-git-checks

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dev": "nuxt dev playground",
3535
"dev:build": "nuxt build playground",
3636
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
37-
"release": "npm run lint && npm run prepack && npm run test && changelogen --release && npm publish && git push --follow-tags",
37+
"release": "npm run lint && npm run prepack && npm run test && changelogen --release && git push --follow-tags",
3838
"lint": "eslint .",
3939
"lint:fix": "eslint . --fix",
4040
"test": "vitest run --reporter=verbose",

0 commit comments

Comments
 (0)