Workflow automatically updates license cache when package-lock.json changes (#155)

This commit is contained in:
Patrick Ellis
2021-06-18 12:16:50 -04:00
committed by GitHub
parent 1ff5fe36bd
commit 4107ba982c
3 changed files with 64 additions and 20 deletions

View File

@@ -1,20 +0,0 @@
name: Licensed
on:
push: {branches: main}
pull_request: {branches: main}
jobs:
test:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v2
- run: npm ci
- name: Install licensed
run: |
cd $RUNNER_TEMP
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.0.1/licensed-3.0.1-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- run: licensed status