Skip to content

chore: add authentication step for private packages #77

chore: add authentication step for private packages

chore: add authentication step for private packages #77

Workflow file for this run

name: "Test typescript-action"
on:
pull_request:
push:
branches:
- master
- 'releases/*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]

Check failure on line 13 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- name: Install Node (v20)
id: node-install
uses: actions/[email protected]
with:
node-version: 20.11
# allow packages inside this repo to consume from our private npm registry
- name: Authenticate against NPM
run: |
npm config set //npm.pkg.github.com/:_authToken=$GH_TOKEN
npm config list
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_PKG_REGISTRY_READ }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check for Execution
uses: ./
with:
skipOnCommitMsg: "sample"
ghToken: ${{ secrets.GH_TOKEN_3 }}
- name: Some Job
run: echo "sample"