Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 7 additions & 21 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build Chrome extension


on:
push:
branches: [ main ]
Expand All @@ -12,34 +11,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

uses: actions/checkout@v4 # Update to v4 for best compatibility

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4 # Update to v4
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
run: |
mkdir -p out # Ensure the 'out' directory exists
zip -r out/extension-${{ github.sha }}.zip *

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