Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
add npm auth to url (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal authored Oct 24, 2024
1 parent 9dc42fc commit 724303e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-kotlin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release Kotlin

on:
workflow_dispatch:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release-typescript.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release TypeScript Package
name: Release TypeScript

on:
workflow_dispatch:
Expand Down Expand Up @@ -51,6 +51,9 @@ jobs:
name: Build and Publish TypeScript Package
needs: set-version-and-tag
runs-on: macos-latest
permissions:
contents: write
id-token: write
steps:
# Check out the code at the release tag
- uses: actions/checkout@v4
Expand Down Expand Up @@ -84,6 +87,15 @@ jobs:
npm run test:node:cjs
npm run test:node:esm
- name: Setup npm auth
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
- name: Verify npm authentication
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm whoami

# Publish to npm
- name: Publish to npm
env:
Expand Down

0 comments on commit 724303e

Please sign in to comment.