Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altipla-consulting/setup-private-npm.actions
Setup private NPM configuration in CI environments.
https://github.com/altipla-consulting/setup-private-npm.actions
Last synced: about 1 month ago
JSON representation
Setup private NPM configuration in CI environments.
- Host: GitHub
- URL: https://github.com/altipla-consulting/setup-private-npm.actions
- Owner: altipla-consulting
- License: mit
- Created: 2022-06-22T10:40:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T11:24:34.000Z (about 2 years ago)
- Last Synced: 2024-04-16T00:19:35.919Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-private-npm.actions
Setup private NPM configuration in CI environments.
## Usage
```yaml
name: PRon:
push:
branches: [ main ]
pull_request:
branches: [ main ]jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.x'- name: Configure private packages
uses: altipla-consulting/setup-private-npm.actions@main
with:
# Use only the ones you need.
fontawesome-token: ${{ secrets.FONTAWESOME_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
buf-token: ${{ secrets.BUF_TOKEN }}- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
build-${{ env.cache-name }}-
build-- name: Install deps
run: npm ci- name: Lint
run: npm run lint
```