Skip to content

Commit

Permalink
modify pnpm publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
BolajiOlajide committed Nov 1, 2023
1 parent 6009bb3 commit 7f37c3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Koii CI (Release)
name: Koii Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -67,9 +67,6 @@ jobs:

if: github.repository_owner == 'BolajiOlajide'

env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -104,12 +101,15 @@ jobs:

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
uses: martinbeentjes/npm-get-version-action@1.3.1

- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish to NPMJS
run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: NPM_AUTH_TOKEN

- name: Push git tag and updated package.json
run: |
Expand Down

0 comments on commit 7f37c3a

Please sign in to comment.