Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BDE-237 dynamic host permissions granting #73

Merged
merged 8 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 29 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI Build

on:
pull_request:

Expand All @@ -17,29 +16,50 @@ on:

jobs:
build:
permissions:
contents: write # This is needed for release
actions: write # This is needed for upload-artifact

runs-on:
- ${{ github.repository_owner != github.actor && 'ubuntu-latest' || 'self-hosted' }}

steps:

- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install pnpm
node-version-file: '.nvmrc'

- name: Setup pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate

corepack enable pnpm

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v3
key: |
${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install dependencies
run: pnpm install

- name: Update package version for release
if: startsWith(github.ref, 'refs/tags/v')
run: |
VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\/v//')
pnpm version $VERSION --no-git-tag-version
cat <<! | tee -a $GITHUB_ENV
NODE_ENV=production
!

- name: Build
run: pnpm build:chrome

Expand Down
Loading
Loading