-
Notifications
You must be signed in to change notification settings - Fork 28
36 lines (31 loc) · 894 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*'
permissions:
id-token: write # This is required for requesting the JWT
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: https://registry.npmjs.org
cache: npm
- run: npm i pnpm@latest -g
- run: pnpm config set registry https://registry.npmmirror.com
- run: pnpm i
- run: pnpm build
- run: npx jsr publish
- run: npm publish --registry=https://registry.npmjs.org --provenance
- run: cnpm sync
- run: curl -L https://npmmirror.com/sync/json-editor-vue
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}