Skip to content

feat: add dep to roles and permissions #216

feat: add dep to roles and permissions

feat: add dep to roles and permissions #216

Workflow file for this run

name: PublishRelease
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
persist-credentials: false
# we pull the repo course contents outside the docker build to avoid
# putting ssh keys on the docker layers
- uses: webfactory/ssh-agent@d4b9b8ff72958532804b70bbe600ad43b36d5f2e # v0.8.0
with:
ssh-private-key: |
${{ secrets.MAC_SETUP_DEPLOY_KEY }}
${{ secrets.NBL_DEPLOY_KEY }}
${{ secrets.USEMILLER_DEPLOY_KEY }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: "18"
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
name: Setup pnpm cache
with:
path: |
${{ steps.pnpm-cache.outputs.STORE_PATH }}
${{ github.workspace }}/apps/frontend/.next/cache
key: ${{ runner.os }}-pnpm-store-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-pnpm-store-nextjs
- name: Install dependencies
run: pnpm install --frozen-lockfile -r
- run: pnpm run test
- run: pnpm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_SM }}
run: npx semantic-release