Skip to content

Commit

Permalink
Create action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay7178 authored May 8, 2024
1 parent 3fff6d0 commit caa64f8
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/buildextension/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Chrome extension


on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3


- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

# - name: Install packages
# run: npm install
# shell: bash


# - name: Install packages
# run: npm ci
# shell: bash

# - name: Build extension
# run: npm run build --if-present
# shell: bash

- name: Pack extension
working-directory: .
run: zip -r extension-${{ github.event.pull_request.head.sha }}.zip *
shell: bash

- name: Upload extension archive
uses: actions/upload-artifact@v3
with:
name: extension-${{ github.sha }}
path: out/extension-${{ github.event.pull_request.head.sha }}.zip

0 comments on commit caa64f8

Please sign in to comment.