Skip to content

Commit

Permalink
🔧 chore(workflow): update npm-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisk809 authored Aug 28, 2024
1 parent f375ab5 commit 4a589a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

name: Node.js Package

on:
release:
types: [created]
on: [push]

jobs:
build:
Expand All @@ -16,8 +14,11 @@ jobs:
with:
node-version: 20
- run: npm ci
- run: npm test

- name: install dep
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
publish-npm:
needs: build
runs-on: ubuntu-latest
Expand All @@ -26,8 +27,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
registry-url: https://registry.npmjs.org
- run: npm build
- run: npm publish
env:
Expand Down

0 comments on commit 4a589a6

Please sign in to comment.