Skip to content

Update cache path in release workflow to use ~/.cache/yarn #20

Update cache path in release workflow to use ~/.cache/yarn

Update cache path in release workflow to use ~/.cache/yarn #20

Workflow file for this run

name: Main
on: push
jobs:
build:
runs-on: ubuntu-latest
# env:
# VERSION: ${{ github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Yarn Dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install
- name: Build extension
run: |
yarn build --zip
# for target in chrome-mv3 firefox-mv3 edge-mv3 brave-mv3 opera-mv3 safari-mv3; do
# yarn build --target=$target --zip
# done
- name: Generate Changelog
run: echo "# Good things have arrived" > ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
build/chrome-mv3-prod.zip