Skip to content

Add changelog

Add changelog #48

Workflow file for this run

name: Publish Tier 3
on:
push:
tags:
- 'Release-Tier3/[0-9]+.[0-9]+.[0-9]+*'
permissions:
contents: write
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
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
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout release branch
run: |
git fetch origin "release/${{ steps.version.outputs.VERSION }}"
git checkout "release/${{ steps.version.outputs.VERSION }}"
- uses: ./.github/actions/setup
with:
dart-version: ${{ vars.DART_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
- name: Switch dependencies to local
run: dart run tools/switch_deps.dart local
- name: Commit local dependencies to release branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: switch to local dependencies after publish"
git push origin release/${{ steps.version.outputs.VERSION }}
fi