Skip to content
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
12 changes: 7 additions & 5 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,20 @@ jobs:
- run: npm install -g "@semantic-release/changelog"
- run: npm install -g "@semantic-release/git"
- run: npm install -g "pub-semantic-release"

# Setup pub.dev credentials for automated publishing
# The credentials.json file should be stored as a repository secret
- name: Setup Pub Credentials
run: |
mkdir -p $HOME/.pub-cache
echo '${{ secrets.PUB_CREDENTIALS }}' > $HOME/.pub-cache/credentials.json

- name: Semantic Release
run: |
export NODE_PATH="$(npm root -g)"
npx semantic-release@17
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pub Credentials
run: |
mkdir -p $HOME/.config/dart
echo '${{ secrets.PUB_CREDENTIALS }}' > $HOME/.config/dart/pub-credentials.json

- name: Publish to pub.dev
run: dart pub publish --force