Skip to content

Commit

Permalink
fix: npm sync
Browse files Browse the repository at this point in the history
  • Loading branch information
islemci authored Oct 1, 2024
1 parent 90c24f1 commit 3ea74fa
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
name: Publish to npm

on:
push:
branches:
- main
tags:
- '*'
workflow_run:
workflows: ["Build"]
types:
- completed

jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
node-version: '20'
registry-url: 'https://registry.npmjs.org/'

- name: Install dependencies
run: npm install

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

0 comments on commit 3ea74fa

Please sign in to comment.