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

add npm auth to url #144

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading