Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup better publish #62

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,12 @@ jobs:
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ env.DART_VERSION }}
- name: Activate melos
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
dart pub global activate melos
- name: Bootstrap melos
run: melos bs
- name: Configure git user
run: |
git config user.name github-actions
git config user.email [email protected]
- run: melos version --yes
- name: Cache source
run: melos run cache-source
- name: Setup Pub Credentials
shell: bash
env:
CREDENTIALS_JSON: ${{ secrets.PUB_CREDENTIALS }}
run: |
mkdir -p $XDG_CONFIG_HOME/dart/
echo $CREDENTIALS_JSON > $XDG_CONFIG_HOME/dart/pub-credentials.json
- run: melos publish --yes --no-dry-run --git-tag-version
continue-on-error: true
- uses: bluefireteam/melos-action@v3
with:
publish: true
tag: true
git-email: [email protected]
git-name: github-actions
- name: Push tags
uses: CasperWA/push-protected@v2
with:
Expand Down