Skip to content

Merge pull request #237 from yakforward-ou/update_internal_dependenci… #62

Merge pull request #237 from yakforward-ou/update_internal_dependenci…

Merge pull request #237 from yakforward-ou/update_internal_dependenci… #62

Workflow file for this run

name: 'pub-lish'
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
branches:
- main
jobs:
pub-lish:
name: 'publish to pub.dev'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'setup flutter'
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: 'setup credentials'
run: |
mkdir $HOME/.pub-cache/ && \
touch $HOME/.pub-cache/credentials.json && \
cat <<EOF > $HOME/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes":["https://www.googleapis.com/auth/userinfo.email","openid"],
"expiration":${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }}
}
EOF
- name: 'install dependencies'
uses: bluefireteam/melos-action@v1
- name: 'publishing'
run: |
melos publish --no-dry-run --git-tag-version