feat: Build / package extension - fix paths in HTML/JS (#2) #3
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
# https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml | ||
name: Node.js CI | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
- name: Package the extension | ||
uses: montudor/action-zip@v1 | ||
with: | ||
zip -r extension.zip manifest.json assets lib options pages | ||
Check failure on line 33 in .github/workflows/node.js.yml GitHub Actions / Node.js CIInvalid workflow file
|
||
# args: zip -qq -r dir.zip dir | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: extension.zip | ||
path: extension.zip | ||
compression-level: 1 # low compression (range: 0...9) | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
# retention-days: 90 | ||
# End. |