Nightly #30
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
name: Nightly | |
on: | |
workflow_run: | |
workflows: [Test] | |
types: [completed] | |
branches: [main] | |
jobs: | |
nighly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Get pnpm store directory | |
id: pnpm-store-dir-path | |
run: echo "dir=$(pnpm store path --silent)" >> $GITHUB_OUTPUT | |
- name: Use pnpm cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pnpm-store-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Pack Chrome extension | |
run: cd ./dist && zip -r ../minimal-chrome-tab.zip ./ | |
- name: Publish nightly release | |
run: | | |
gh release delete nightly --cleanup-tag --yes | |
gh release create nightly --prerelease --title "Nightly" --notes "The bleeding edge release." ./minimal-chrome-tab.zip | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |