Skip to content

Commit

Permalink
chore: fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DawidWraga committed May 3, 2023
1 parent 83c796d commit 92e9377
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Expand Up @@ -27,15 +27,16 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
scope: '@davstack'
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: pnpm install

- name: Build package
run: pnpm run build # or the build script you have in your package.json

- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
# - name: Authenticate with npm
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Publish to npm
run: pnpm publish
Expand Down

0 comments on commit 92e9377

Please sign in to comment.