-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.41 KB
/
release.yml
File metadata and controls
55 lines (44 loc) · 1.41 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
name: Release
on:
push:
tags:
- "*/v*"
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
name: Release ${{ github.ref_name }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Parse tag
id: parse-tag
run: echo "package=${GITHUB_REF_NAME%%/*}" >> "$GITHUB_OUTPUT"
- name: Build
run: nadle build
- name: Setup Node.js 24 for trusted publishing
if: ${{ !startsWith(github.ref_name, 'vscode-extension/') }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 24
registry-url: https://registry.npmjs.org
- name: Publish to npm
if: ${{ !startsWith(github.ref_name, 'vscode-extension/') }}
run: npm publish --provenance --access public
working-directory: packages/${{ steps.parse-tag.outputs.package }}
- name: Publish VS Code Extension
if: startsWith(github.ref_name, 'vscode-extension/')
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
working-directory: packages/vscode-extension
run: npx @vscode/vsce publish