Skip to content

Merge pull request #1 from receter/release-please--branches--main--co… #3

Merge pull request #1 from receter/release-please--branches--main--co…

Merge pull request #1 from receter/release-please--branches--main--co… #3

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created}}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
build-extension:
if: ${{needs.release-please.outputs.release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/workflows/init-npm
- name: Build and upload to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
npm run build && npm run zip
mv ./dist.zip ./dist-${{ needs.release-please.outputs.tag_name }}.zip
gh release upload ${{ needs.release-please.outputs.tag_name }} ./dist-${{ needs.release-please.outputs.tag_name }}.zip