-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 1.14 KB
/
Copy pathpublish-tier3.yml
File metadata and controls
39 lines (32 loc) · 1.14 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
name: Publish Tier 3
on:
push:
tags:
- 'Release-Tier3/[0-9]+.[0-9]+.[0-9]+*'
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
environment: pub.dev-tier3
steps:
- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/Release-Tier3/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
with:
dart-version: ${{ vars.DART_VERSION }}
# [SWR-VERSION-BUILD-STAMPING] Stamp the version from the tag in the
# runner working tree ONLY. Source stays 0.0.0-dev; nothing is committed,
# pushed, or branched. The runner is discarded after publish.
- name: Stamp versions in the working tree (not committed)
run: dart run tools/prepare_publish.dart "${{ steps.version.outputs.VERSION }}"
- name: Publish packages
run: |
chmod +x .github/scripts/publish-packages.sh
.github/scripts/publish-packages.sh "${{ steps.version.outputs.VERSION }}" dart_node_react dart_node_react_native