-
-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (48 loc) · 1.48 KB
/
release.yml
File metadata and controls
59 lines (48 loc) · 1.48 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set node
uses: actions/setup-node@v5
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- run: npm i -g npm@latest
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Setup
run: npm i -g pnpm@9
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
working-directory: ./packages/core
- name: Publish eslint-plugin to NPM
run: pnpm publish --access public --no-git-checks
working-directory: ./packages/eslint
- name: Publish mcp to NPM
run: pnpm publish --access public --no-git-checks
working-directory: ./packages/mcp
- name: Publish to VSCE
run: |
VERSION=$(node -p "require('./package.json').version")
if [[ "$VERSION" == *"-beta"* ]]; then
pnpm vsce publish --no-dependencies --pre-release -p ${{secrets.VSCE_TOKEN}}
else
pnpm vsce publish --no-dependencies -p ${{secrets.VSCE_TOKEN}}
fi
working-directory: ./packages/vscode
env:
VSCE_TOKEN: ${{secrets.VSCE_TOKEN}}