Skip to content

Commit

Permalink
🐛 fix: adjust publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissgon committed May 5, 2024
1 parent f27523e commit 45087b3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,23 @@ jobs:
- name: Setup bun
uses: oven-sh/setup-bun@v1

- name: Setup node
uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
node-version-file: .nvmrc
node-version: 20
registry-url: https://registry.npmjs.org
version:
# - name: Setup node
# uses: actions/setup-node@v4
# with:
# node-version-file: .nvmrc
# node-version: 20
# registry-url: https://registry.npmjs.org

- name: Config .npmrc
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: 🔧 Install and build
run: bun i && bun run build

- name: 📦 Publish package on NPM
run: npm publish --access public
run: pnpm publish --access public

0 comments on commit 45087b3

Please sign in to comment.