Skip to content

Commit

Permalink
build: release extension when updating main branch (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu authored Jun 16, 2021
1 parent 862c626 commit c16cccc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 40 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/semantic-release.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test & Release

on:
pull_request:
Expand All @@ -23,7 +23,7 @@ jobs:
skip_after_successful_duplicate: true
concurrent_skipping: always
paths_ignore: '["**/*.md", "**/docs/**"]'
test:
test-and-release:
needs: pre
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
Expand All @@ -49,3 +49,7 @@ jobs:
- run: yarn typecheck
- run: yarn lint
- run: yarn build
- run: |
echo '${{ secrets.DOT_ENV }}' > .env
yarn release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
4 changes: 2 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"branches": ["release"],
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false,
"successComment": false
"successComment": true
}
],
"@semantic-release/github",
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# PlantUML Visualizer

[![Test](https://github.com/WillBooster/plantuml-visualizer/workflows/Test/badge.svg)](https://github.com/WillBooster/plantuml-visualizer/actions?query=workflow%3ATest)
[![Release](https://github.com/WillBooster/plantuml-visualizer/workflows/Release/badge.svg)](https://github.com/WillBooster/plantuml-visualizer/actions?query=workflow%3ARelease)
[![Test & Release](https://github.com/WillBooster/plantuml-visualizer/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/plantuml-visualizer/actions/workflows/test.yml)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

:factory: A Chrome / Firefox extension for visualizing PlantUML descriptions.
Expand Down

0 comments on commit c16cccc

Please sign in to comment.