LOC-524 Make Plugin More Secure With Configurable Populate Max Depth … #322
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 | |
on: [push, pull_request] | |
jobs: | |
execute: | |
runs-on: [self-hosted, Linux, aws] | |
env: | |
INPUT_TOKEN: "" | |
steps: | |
- name: Set work folder permissions | |
run: pwd && sudo chown -R $USER:$USER ./ | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run unit tests | |
run: npm run test | |
- name: Publish to npm | |
uses: JS-DevTools/npm-publish@v1 | |
if: github.ref == 'refs/heads/main' | |
with: | |
token: ${{ secrets.NPM_AUTH_TOKEN }} |