fix(features): show env variables only for admin #487
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} | |