Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Publish

Publish #2

Workflow file for this run

name: Publish
on:
workflow_dispatch:
jobs:
publish:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install packages
run: pnpm i
- name: Package Extension
run: pnpm package
- name: Get version
id: version
uses: martinbeentjes/[email protected]
- name: Rename package
run: mv ./build/chrome-mv3-prod.zip ./build/twifiner-${{ steps.version.outputs.current-version }}.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
token: ${{ github.token }}
tag_name: ${{ steps.version.outputs.current-version }}
files: ./build/twifiner-${{ steps.version.outputs.current-version }}.zip