Skip to content

chore(deps-dev): bump eslint-config-next from 16.2.2 to 16.2.4 in /website #300

chore(deps-dev): bump eslint-config-next from 16.2.2 to 16.2.4 in /website

chore(deps-dev): bump eslint-config-next from 16.2.2 to 16.2.4 in /website #300

Workflow file for this run

name: "Build TapToQR Artifact"
on:
workflow_dispatch:
inputs:
VERSION:
description: "The version of the addon to build"
type: string
required: false
workflow_call:
inputs:
VERSION:
description: "The version of the addon to build"
type: string
required: false
outputs:
VERSION:
description: "The version of the addon to build"
value: ${{ jobs.build-artifact.outputs.VERSION }}
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && 'pull_request' || 'push' }}-${{ github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
build-artifact:
name: "Build TapToQR Artifact"
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
VERSION: ${{ steps.determine-version.outputs.VERSION }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
with:
version: 10
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v5
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Determine VERSION
id: determine-version
run: |
if [ -z "${{ inputs.VERSION }}" ]; then
echo "Using repository version"
echo ${{ vars.VERSION }}
echo "VERSION=${{ vars.VERSION }}" >> $GITHUB_OUTPUT
else
echo "Using input version"
echo ${{ inputs.VERSION }}
echo "VERSION=${{ inputs.VERSION }}" >> $GITHUB_OUTPUT
fi
- name: Update Version
working-directory: ./browser
run: |
jq --arg version "${{steps.determine-version.outputs.VERSION}}" '.version = $version' package.json > temp.json && mv temp.json package.json
jq --arg version "${{steps.determine-version.outputs.VERSION}}" '.version = $version' public/manifest.json > public/temp.json && mv public/temp.json public/manifest.json
- name: Install dependencies
working-directory: ./browser
run: pnpm install --frozen-lockfile
- name: Lint code
working-directory: ./browser
run: pnpm run lint
- name: Build extension
working-directory: ./browser
run: pnpm run build
- name: Create Artifact
working-directory: ./browser/build
run: |
zip -r ../../TapToQR-${{steps.determine-version.outputs.VERSION}}.zip ./*
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
path: 'TapToQR-${{steps.determine-version.outputs.VERSION}}.zip'
name: 'TapToQR-addon'