Skip to content

fix(features): show env variables only for admin #487

fix(features): show env variables only for admin

fix(features): show env variables only for admin #487

Workflow file for this run

# SPDX-FileCopyrightText: 2024 The Forkbomb Company
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: πŸ“’ Release & Publish
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read # for checkout@v4
jobs:
reuse:
name: 🚨 reuse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fsfe/reuse-action@v4
test:
name: πŸ§ͺ tests
runs-on: ubuntu-latest
steps:
- uses: dyne/pnpm@main
with:
working-directory: webapp
- run: make build
- run: pnpm i18n:lint
working-directory: webapp
- run: npx playwright install --with-deps
working-directory: webapp
- run: pnpm t
working-directory: webapp
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: tests-results
path: webapp/tests-results/
retention-days: 10
release:
name: πŸ”– semantic release
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./webapp
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: dyne/pnpm@main
with:
working-directory: ./webapp
- run: pnpm add -D @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/error @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator semantic-release
- run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}