chore(deps): Bump the npm_and_yarn group with 9 updates #30
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: CI/CD | |
on: | |
- push | |
- pull_request | |
env: | |
FORCE_COLOR: 3 | |
jobs: | |
ci: | |
name: Compile Partials | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Clone Repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set Up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Use Dependencies Cache | |
id: dependencies-cache | |
uses: actions/cache@v1 | |
with: | |
key: dependencies-${{ hashFiles('package-lock.json') }} | |
path: node_modules | |
- name: Use Sticker Partials Cache | |
uses: actions/cache@v1 | |
with: | |
key: sticker-partials-${{ hashFiles('src/stickers.yml') }} | |
path: .sticker-partials-cache | |
restore-keys: | | |
sticker-partials- | |
- name: Install Dependencies | |
if: steps.dependencies-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Build Project | |
run: npx nps build | |
- name: Validate Manifest | |
run: npx nps test | |
- name: Compile Sticker Pack Partials | |
run: npx nps compile | |
- name: Configure SSH | |
if: github.ref == 'refs/heads/master' | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY_KEY }} | |
- name: Deploy JSON to GitHib Pages | |
if: github.ref == 'refs/heads/master' | |
uses: JamesIves/[email protected] | |
with: | |
SSH: true | |
CLEAN: true | |
SINGLE_COMMIT: true | |
BRANCH: gh-pages | |
FOLDER: partials |