Bump to 1.7.9 #82
Workflow file for this run
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: Release Browser Extension | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
Publish: | |
if: github.repository == 'Vendicated/Vencord' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: check that tag matches package.json version | |
run: | | |
pkg_version="v$(jq -r .version < package.json)" | |
if [[ "${{ github.ref_name }}" != "$pkg_version" ]]; then | |
echo "Tag ${{ github.ref_name }} does not match package.json version $pkg_version" >&2 | |
exit 1 | |
fi | |
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json | |
- name: Use Node.js 19 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build web | |
run: pnpm buildWeb --standalone | |
- name: Publish extension | |
run: | | |
cd dist/chromium-unpacked | |
pnpx [email protected] upload --auto-publish | |
env: | |
EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | |
CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | |
REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} |