add quick effect #87
Workflow file for this run
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: Test & Release | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV | |
- name: Restore cache | |
uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: ${{ env.NPM_CACHE_DIR }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Run tests | |
run: | | |
make test | |
- name: Compile | |
run: make | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mixxx-launchpad-${{ github.sha }}-${{ github.run_id }} | |
path: dist | |
release: | |
needs: test | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'branch' && github.ref_name == 'master' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_ENV | |
- name: Restore cache | |
uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: ${{ env.NPM_CACHE_DIR }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: mixxx-launchpad-${{ github.sha }}-${{ github.run_id }} | |
path: dist | |
- name: Create release | |
run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |