-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (55 loc) · 2.33 KB
/
Copy pathrelease-please.yml
File metadata and controls
63 lines (55 loc) · 2.33 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
name: Run Release Please
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release-package:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
steps:
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release
with:
token: ${{secrets.GITHUB_TOKEN}}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: ${{ fromJson(steps.release.outputs.releases_created) }}
with:
fetch-depth: 0 # If you only need the current version remove this line.
- uses: ./.github/actions/ci
if: ${{ fromJson(steps.release.outputs.releases_created) }}
env:
TOOLBAR_INTERNAL_CLIENT_ID: ${{ vars.TOOLBAR_INTERNAL_CLIENT_ID }}
TOOLBAR_INTERNAL_BASE_URL: ${{ vars.TOOLBAR_INTERNAL_BASE_URL }}
TOOLBAR_INTERNAL_STREAM_URL: ${{ vars.TOOLBAR_INTERNAL_STREAM_URL }}
TOOLBAR_INTERNAL_EVENTS_URL: ${{ vars.TOOLBAR_INTERNAL_EVENTS_URL }}
TOOLBAR_INTERNAL_BACKEND_URL: ${{ vars.TOOLBAR_INTERNAL_BACKEND_URL }}
TOOLBAR_INTERNAL_OBSERVABILITY_OTLP_ENDPOINT: ${{ vars.TOOLBAR_INTERNAL_OBSERVABILITY_OTLP_ENDPOINT }}
- name: Setup Node.js
if: ${{ fromJson(steps.release.outputs.releases_created) }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Install npm
if: ${{ fromJson(steps.release.outputs.releases_created) }}
run: npm install -g npm@latest
- name: Publish Package (prerelease)
if: ${{ fromJson(steps.release.outputs.releases_created) && contains(steps.release.outputs.tag_name, 'beta') }}
shell: bash
working-directory: ./packages/toolbar
run: npm publish --provenance --tag next --access public
env:
NPM_CONFIG_PROVENANCE: true
- name: Publish Package (release)
if: ${{ fromJson(steps.release.outputs.releases_created) && !contains(steps.release.outputs.tag_name, 'beta') }}
shell: bash
working-directory: ./packages/toolbar
run: npm publish --provenance --access public
env:
NPM_CONFIG_PROVENANCE: true