Skip to content

slack-updates-pre-broadcast #4

slack-updates-pre-broadcast

slack-updates-pre-broadcast #4

name: slack-updates-pre-broadcast
on:
schedule:
- cron: '0 14 * * 5'
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 20
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8.7.6
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/[email protected]
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
slack-updates-pre-broadcast:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: 20
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8.7.6
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/[email protected]
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: Notification
env:
SLACK_API_ENDPOINTS: ${{ secrets.SLACK_WEBHOOK_URL_DEV }}
run: |
pnpm --filter intergalactic-migrate run build && pnpm slack-updates-broadcast