-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (33 loc) · 955 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
37
38
39
40
41
name: Publish to NPM
on:
workflow_dispatch: ~
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
NPM_TOKEN: ${{ secrets.NPM_PAT }}
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 9
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--global, "@vscode/vsce"]
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- run: pnpm build
- run: vsce publish --no-dependencies
working-directory: ./packages/vscode
- name: pnpm publish
working-directory: ./packages/language-server
run: |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm publish --no-git-checks