-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
--- | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- id: release | ||
name: Run release please | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
command: manifest | ||
- if: steps.release.outputs.releases_created && inputs.publish-workflow != '' | ||
name: Trigger Publish | ||
uses: actions/github-script@v6 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} | ||
- uses: actions/setup-node@v3 | ||
- run: | | ||
yarn | ||
- run: | | ||
yarn all | ||
- name: Check for diff | ||
id: diff | ||
run: echo "::set-output name=GIT_STATUS::$(git status -s dist/)" | ||
- name: Push build | ||
if: ${{ steps.diff.outputs.GIT_STATUS != '' }} | ||
run: | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git add dist/* | ||
git commit -m "chore: Build Source" | ||
git push | ||
- run: | | ||
npm install semantic-release semantic-release/git | ||
npx semantic-release --debug --no-ci | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
github-token: ${{ (secrets.github-token != '' && secrets.github-token) || secrets.GITHUB_TOKEN }} | ||
retries: 3 | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
workflow_id: '${{ inputs.publish-workflow }}', | ||
ref: '${{ steps.release.outputs.tag_name }}' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "1.0.3" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"packages": { | ||
".": { | ||
"changelog-path": "CHANGELOG.md", | ||
"release-type": "simple", | ||
"bump-minor-pre-major": false, | ||
"bump-patch-for-minor-pre-major": false, | ||
"draft": false, | ||
"prerelease": false | ||
} | ||
}, | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
} |