Audioaddict url (#4260) #82
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
name: Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build-chrome: | |
name: Build the extension for Chrome | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the extension | |
run: | | |
npm run build chrome | |
- name: Upload the extension as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: web-scrobbler-chrome | |
path: build/chrome | |
build-firefox: | |
name: Build the extension for Firefox | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Get Node.js version from .nvmrc | |
id: get-node-version | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the extension | |
run: | | |
npm run build firefox | |
- name: Upload the extension as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: web-scrobbler-firefox | |
path: build/firefox | |
build-safari: | |
name: Build the extension for Safari | |
runs-on: macos-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the extension | |
run: | | |
npm run build safari | |
- name: Upload the extension as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: web-scrobbler-safari | |
path: build/safari |