Prep for Mac OS Upgrade(!) - lots of small edits (#2) #5
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: | |
name: Test & Package | |
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: | |
args: zip -r extension.zip manifest.json assets lib options pages | |
# args: zip -qq -r dir.zip dir | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: extension | |
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. |