Skip to content

fix: Don't close the indexeddb connection #73

fix: Don't close the indexeddb connection

fix: Don't close the indexeddb connection #73

Workflow file for this run

name: Releases
on:
push:
tags:
- '*'
jobs:
check-version:
runs-on: ubuntu-latest
outputs:
should_release: ${{ steps.check.outputs.should_release }}
steps:
- uses: actions/checkout@v4
- name: Check if tag matches manifest version
id: check
run: |
TAG=${GITHUB_REF#refs/tags/}
MANIFEST_VERSION=$(jq -r .version manifest.json)
if [ "$TAG" == "$MANIFEST_VERSION" ]; then
echo "should_release=true" >> $GITHUB_OUTPUT
else
echo "should_release=false" >> $GITHUB_OUTPUT
fi
build:
needs: check-version
if: needs.check-version.outputs.should_release == 'true'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- run: npm run build
- uses: ncipollo/release-action@v1
with:
artifacts: "main.js,styles.css,manifest.json"
draft: true