Skip to content

Instantly share code, notes, and snippets.

@mmorel-35
Created August 25, 2021 09:35
Show Gist options
  • Save mmorel-35/2dfc59f78c52b713a08737030fd9ac94 to your computer and use it in GitHub Desktop.
Save mmorel-35/2dfc59f78c52b713a08737030fd9ac94 to your computer and use it in GitHub Desktop.
name: Licensed cache
on:
push:
branches:
- main
paths:
- package-lock.json
workflow_dispatch:
jobs:
update_licenses_cache:
runs-on: ubuntu-latest
name: Update licenses cache
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: npm ci
- uses: jonabc/setup-licensed@v1
with:
version: '3.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: jonabc/licensed-ci@v1
with:
user_name: ${{ github.actor }}
user_email: ${{ github.actor }}@users.noreply.github.com
github_token: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment