Skip to content

Commit

Permalink
Fix npm registry authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
silverlyra committed May 16, 2024
1 parent 27300ac commit 4f2dd9f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "Check for updates"

on:
pull_request: # FIXME(lyra)
workflow_dispatch:
schedule:
- cron: >-
Expand Down Expand Up @@ -61,13 +60,14 @@ jobs:
if: fromJson(steps.check.outputs.result).found
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: npm
- name: Update types
if: fromJson(steps.check.outputs.result).found
id: update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
VERSION: v${{ fromJson(steps.check.outputs.result).next }}
run: |
npm ci
Expand All @@ -76,9 +76,6 @@ jobs:
echo "Generating type package for ${VERSION}"
mkdir -p types
pwd
ls -Al
./bin/generate-kubernetes-types --api "$VERSION" --file "${RUNNER_TEMP}/swagger.json"
cd "./types/${VERSION}.0"
Expand Down

0 comments on commit 4f2dd9f

Please sign in to comment.