-
Notifications
You must be signed in to change notification settings - Fork 24
95 lines (81 loc) · 2.72 KB
/
release-please.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
on:
push:
branches:
- trunk
- trunk-2.x
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-24.04
steps:
- name: Initialize Release Please
id: release
uses: googleapis/release-please-action@v4
with:
target-branch: ${{ github.ref_name }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Checkout Sources
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: Install NodeJS
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
scope: "@hpcc-js"
- name: Install OS Dependencies
if: ${{ steps.release.outputs.release_created }}
run: |
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y git cmake ninja-build wget zip
sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex
sudo apt-get install -y python3 python3-pip
sudo apt-get install -y chromium
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install Dependencies
if: ${{ steps.release.outputs.release_created }}
run: |
npm ci
npm run install-build-deps
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: |
npm run build
- name: Test
if: ${{ steps.release.outputs.release_created }}
env:
CI: true
run: |
npm run test
- name: Calculate Coverage
if: ${{ steps.release.outputs.release_created }}
run: |
npm run coverage
npm run coverage-report
- name: Update Coveralls
if: ${{ steps.release.outputs.release_created }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
npm run publish
- name: Purge jsdelivr
if: ${{ steps.release.outputs.release_created }}
run: |
npm run purge-jsdelivr