Skip to content

Commit

Permalink
Add auto-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
robbecker-wf committed May 29, 2024
1 parent 37ea54f commit c3ab958
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
create-sbom-release-asset:
name: Create SBOM Release Asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish SBOM to Release Assets
uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json

publish:
name: Publish to pub.dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.19.6

- name: Install dependencies
run: dart pub get

- name: Publish - dry run
run: dart pub publish --dry-run

- name: Publish
run: dart pub publish -f
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# OverReact Changelog
## 5.1.1 & 5.1.2
- Fixes to CI [#921] [#922]
- Add auto-publish to pub.dev

## 5.1.0
- [#910] / [#916] Add null safety migration / component authoring guides.
Expand Down

0 comments on commit c3ab958

Please sign in to comment.