Skip to content

Commit

Permalink
fix(ci): fix publish on npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Nov 5, 2024
1 parent 1c18dde commit 9648cf7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package
name: Publish package to npmjs

on:
release:
Expand All @@ -9,11 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18
registry-url: "https://registry.npmjs.org"
cache: 'yarn'

- run: yarn

- name: Publish to npm
run: yarn publish
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9648cf7

Please sign in to comment.