Skip to content

feat(go-dropdown-menu): prefix and suffix slots and generalise menuit… #321

feat(go-dropdown-menu): prefix and suffix slots and generalise menuit…

feat(go-dropdown-menu): prefix and suffix slots and generalise menuit… #321

Workflow file for this run

name: Release
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: git config
run: |
git config --global user.name "${{ secrets.BOT_USERNAME }}"
git config --global user.email "${{ secrets.BOT_EMAIL }}"
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.13.0
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8.6.0
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@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Install deps and cache
- name: Install dependencies
run: pnpm -r install --no-frozen-lockfile
#TEST
# - name: Unit Test Core Components
# run: pnpm test.spec
# working-directory: packages/core
# - name: E2E Test Core Components
# run: pnpm test.e2e
# working-directory: packages/core
- name: Build
run: pnpm run build.libs
- name: Authenticate NPM
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Pre core release
run: pnpm run prerelease
- name: Release Core
run: pnpm run release
- name: Pre wrapper release
run: pnpm run prerelease-wrappers
- name: Release React
run: pnpm run release
working-directory: ./packages/react
- name: Release Vue
run: pnpm run release
working-directory: ./packages/vue
docsite:
name: Deploy docsite
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: getgoui/docsite
fetch-depth: 0
ref: 'main'
token: ${{ secrets.BOT_TOKEN }}
- name: git config
run: |
git config --global user.name "${{ secrets.BOT_USERNAME }}"
git config --global user.email "${{ secrets.BOT_EMAIL }}"
# push to doc site repo to trigger vercel deployment
- name: Push to trigger deployment
run: |
echo "Add and commit changes"
git add .
git commit --allow-empty -m 'chore: trigger latest doc site deployment'
git push origin main -f