Skip to content

feat: Add Single Invoice Web Component (#220) #162

feat: Add Single Invoice Web Component (#220)

feat: Add Single Invoice Web Component (#220) #162

Workflow file for this run

# @format
name: release-if-necessary
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release-if-necessary:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- '@requestnetwork/add-stakeholder'
- '@requestnetwork/create-invoice-form'
- '@requestnetwork/invoice-dashboard'
- '@requestnetwork/payment-widget'
- '@requestnetwork/single-invoice'
steps:
- name: Checkout repository 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 📥
run: npm ci
- name: Make scripts executable
run: |
chmod +x ./scripts/check-release-type.sh
chmod +x ./scripts/publish-next-release.sh
- name: Check release type 🕵️‍♀️
id: check-release
run: |
RELEASE_TYPE=$(npm run check-release-type --workspace=${{ matrix.package }} --silent)
echo "release-type=$RELEASE_TYPE" >> $GITHUB_OUTPUT
- name: Publish stable version 📦
if: steps.check-release.outputs.release-type == 'stable'
run: npm publish --workspace=${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.REQUEST_BOT_NPM_TOKEN }}
VITE_WEB3MODAL_PROJECT_ID: ${{ secrets.VITE_WEB3MODAL_PROJECT_ID }}
- name: Publish next version 📦
if: steps.check-release.outputs.release-type == 'next'
run: npm run publish-next-release --workspace=${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.REQUEST_BOT_NPM_TOKEN }}
VITE_WEB3MODAL_PROJECT_ID: ${{ secrets.VITE_WEB3MODAL_PROJECT_ID }}