Release #23
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
name: Release | |
on: | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Set version | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
npm version patch -m "chore: submit %s to web store" | |
git push --tags | |
- name: Build | |
run: bun run build | |
- name: Zip | |
run: bun run zip | |
- name: Submit to Chrome Web Store | |
uses: PlasmoHQ/bpp@v3.5.0 | |
with: | |
artifact: ./dist/extension.zip | |
keys: ${{ secrets.BPP_KEYS }} | |
- name: Get NPM version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: dist/extension.zip | |
tag_name: 'v${{ steps.package-version.outputs.current-version }}' | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |