Feature: Search Params 관련 로직 리팩토링 (#103) #297
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: CICD Extension | |
on: | |
- push | |
- pull_request | |
jobs: | |
build-extension: | |
runs-on: ubuntu-22.04 | |
env: | |
WEB_URL: "${{ github.ref == 'refs/heads/develop' && secrets.STAGING_WEB_URL || secrets.PROD_WEB_URL }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: pnpm | |
- name: pnpm install | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: setting environment variables | |
run: | | |
echo "${{ secrets.SHARED_ENV_FILE }}" >> packages/shared/.env | |
echo WEB_URL=${{ env.WEB_URL }} >> packages/shared/.env | |
- name: build | |
run: pnpm run build:extension | |
- name: Zip the build files | |
run: pnpm run zip | |
- name: Upload Extension | |
uses: actions/upload-artifact@v4 | |
with: | |
name: extension | |
path: dist-zip/extension.zip | |
upload-extension: | |
needs: build-extension | |
runs-on: ubuntu-22.04 | |
name: Upload chrome store when push on master branch | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master'}} | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v4 | |
- name: Upload zipped file on chrome store | |
uses: mnao305/[email protected] | |
with: | |
file-path: extension/extension.zip | |
extension-id: eaiojpmgklfngpjddhoalgcpkepgkclh | |
client-id: ${{ secrets.CLIENT_ID }} | |
client-secret: ${{ secrets.CLIENT_SECRET }} | |
refresh-token: ${{ secrets.REFRESH_TOKEN }} | |
publish: false |