-
Notifications
You must be signed in to change notification settings - Fork 45
54 lines (43 loc) · 1.29 KB
/
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
53
54
name: Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
validate:
name: Validate
uses: ./.github/workflows/validate.yml
tests:
needs: [validate]
name: Tests
uses: ./.github/workflows/tests.yml
release:
if: github.ref == 'refs/heads/main'
name: Release
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get lts node versions
id: get-lts-versions
run: scripts/get-lts-versions.sh
- name: Use Node.js ${{ steps.get-lts-versions.outputs.last_lts_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.get-lts-versions.outputs.last_lts_version }}
cache: 'yarn'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Install semantic release
run: yarn add -D [email protected] @semantic-release/[email protected] @semantic-release/[email protected]
- name: Apply debug patches
run: patches/apply-patches.sh
- name: Semantic release
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}