-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (47 loc) · 1.32 KB
/
release.yml
File metadata and controls
59 lines (47 loc) · 1.32 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:
branches:
- main
paths:
- 'plugins/**'
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: write
pull-requests: write
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup Node.js 24 LTS
uses: actions/setup-node@v6
with:
node-version: 24.12.0
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential g++ make python3-dev
- name: Install Dependencies
run: yarn install
- name: Generate TypeScript declarations
run: yarn tsc
- name: Build plugins
run: yarn workspaces foreach --all --include 'plugins/*' run build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish --provenance
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}