Repository navigation
67 lines (53 loc) · 1.78 KB
/
Copy pathpublish-dev.yml
File metadata and controls
67 lines (53 loc) · 1.78 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
60
61
62
63
64
65
66
67
name: publish dev build
on:
# not at the full hour, when GitHub delays scheduled runs under load
schedule:
- cron: "23 2 * * *"
workflow_dispatch:
# reads the runs and artifacts of the build workflow
permissions:
actions: read
contents: read
concurrency:
group: publish-dev
cancel-in-progress: false
env:
PYTHONUNBUFFERED: "1"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
jobs:
publish-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: setup python environment
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install Hatch
uses: pypa/hatch@install
- name: Setup Node.js environment
uses: actions/setup-node@v6
with:
node-version: "26"
cache: "npm"
cache-dependency-path: package-lock.json
- name: Update npm
# Node.js bundles an older npm; use the current one, as in local development.
run: npm install -g npm@latest
- name: install node modules
run: npm install --include=dev
- name: publish the JetBrains plugin of the latest successful build of main to the channel dev
run: hatch -q run build:publish-dev jetbrains
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}
- name: publish the VS Code extension of the latest successful build of main as pre-release
# also when the JetBrains upload failed
if: ${{ !cancelled() }}
run: hatch -q run build:publish-dev vscode
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}