Skip to content

Refactor token build #4788

Refactor token build

Refactor token build #4788

Workflow file for this run

name: "make sure every workspace has package.json#private set to `true` or `false`"
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
check-privacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v4
- uses: actions/cache@v2
with:
volta-version: "1.0.8"
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Configure Cloudsmith
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: |
npm config set registry=https://npm.packages.ft.com/financial-times-internal-releases/
npm config set //npm.packages.ft.com/financial-times-internal-releases/:_authToken=${CLOUDSMITH_API_KEY}
- name: Install node modules
run: npm ci
- run: node ./scripts/check-privacy.js