Skip to content

Merge pull request #19 from ar-io/fix-build #2

Merge pull request #19 from ar-io/fix-build

Merge pull request #19 from ar-io/fix-build #2

Workflow file for this run

# build extension and publish on merges to main
name: Build and Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable --immutable-cache
- name: Build
run: yarn build
- name: Zip
run: zip -r dist.zip dist
- name: Publish
if: github.ref == 'refs/heads/main'
uses: Klemensas/chrome-extension-upload-action
with:
refresh-token: ${{ secrets.REFRESH_TOKEN }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
file-name: './dist.zip'
app-id: ${{ secrets.APP_ID }}
publish: true