refactor: react-shadow 제거 및 dev, prod 환경에 따른 entry 분기 처리 로직 제거 #44
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Publish webextension | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Setup pnpm | |
with: | |
version: 8.15.0 | |
run_install: false | |
- uses: actions/setup-node@v4 | |
name: Setup Node.js | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Make zip file | |
run: zip -r ./build.zip ./dist | |
shell: bash | |
- name: Upload & release | |
uses: mnao305/chrome-extension-upload@v5.0.0 | |
with: | |
file-path: ./build.zip | |
extension-id: 'ogldncimhepjdfadhjjhkchknloncnmg' | |
client-id: ${{ secrets.CLIENT_ID }} | |
client-secret: ${{ secrets.CLIENT_SECRET }} | |
refresh-token: ${{ secrets.REFRESH_TOKEN }} |