Skip to content
Merged
Show file tree
Hide file tree
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
47 changes: 15 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,9 @@ jobs:
- name: Type checking
run: npm run check-types

build-chrome-extension:
name: Build Chrome extension artifact
runs-on: rows-fe-default
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: ./.github/actions/setup-node

- uses: ./.github/actions/install-dependencies
with:
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build - production file
run: |
npm run build

- name: Create zip
run: |
cd dist
zip -r ../chrome-extension-${{ github.sha }}.zip *

- name: Archive chrome-extension artifact
uses: actions/upload-artifact@v2
with:
name: chrome-extension-${{ github.sha }}
path: chrome-extension-${{ github.sha }}.zip

create-release:
name: Create Release
needs: [static-analysis, build-chrome-extension]
needs: [static-analysis, audit]
runs-on: rows-fe-default
steps:
- name: Checkout code
Expand All @@ -97,11 +68,23 @@ jobs:
semantic_version: 19
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/npm
@semantic-release/git
working_directory: .
branch: main
env:
GITHUB_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}


- name: Build Chrome extension artifact
if: steps.semantic_release_step.outputs.new_release_published == 'true'
run: |
npm run build
cd dist
zip -r ../chrome-extension-${{ github.sha }}.zip *

- name: Archive chrome-extension artifact
uses: actions/upload-artifact@v2
with:
name: chrome-extension-${{ github.sha }}
path: chrome-extension-${{ github.sha }}.zip
4 changes: 4 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"plugins": [
"@semantic-release/changelog",
[
"@semantic-release/commit-analyzer",
{
Expand All @@ -13,6 +14,9 @@
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/git",
],
"branches": [
"main",
Expand Down