-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (44 loc) · 1.84 KB
/
extension-preview-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
42
43
44
45
46
47
48
49
50
51
52
name: Extension preview release
on:
workflow_dispatch:
push:
paths: [".github/workflows/extension-preview-release.yml", "vscExtension/src/*.js"]
jobs:
lint:
name: Extension preview release
runs-on: ubuntu-latest
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v4
- name: "🔧 setup node"
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: "🛵 set up env vars"
run: |
echo "SHA_SHORT=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "EXTENSION_VERSION=$(node -p -e "require('./vscExtension/package.json').version")" >> "$GITHUB_ENV"
- name: "🏁 build extension"
run: |
cd vscExtension
npm i --omit=optional --include=dev --no-fund --progress=false
mkdir -p out
node build.js
npm run pack
- name: "🚀 release extension"
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: vscExtension/out/pack-analyzer.vsix
body: |
This is an automatically generated **preview** release of the Pack Analyzer VS Code extension.
You can install it by downloading the `.vsix` file below and installing it in [Visual Studio Code](https://code.visualstudio.com)
or in e.g. VSCodium, using "Install from VSIX" on the extensions tab by clicking on the three dots.
Last commit:
- [`${{ env.SHA_SHORT }}`](https://github.com/DEVTomatoCake/Pack-Analyzer/commit/${{ github.sha }}) ${{ github.event.head_commit.message }}
commit: ${{ github.sha }}
makeLatest: false
prerelease: true
tag: vsc-v${{ env.EXTENSION_VERSION }}