Skip to content

Commit

Permalink
Fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Aug 1, 2024
1 parent 1bf9415 commit 63c6bc7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/npm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- 'v*.*.*' # Adjust the tag pattern as needed
workflow_dispatch: # Allows manual triggering

jobs:
build:
Expand All @@ -17,6 +18,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/yarn
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install

- name: Build project
run: yarn build
Expand All @@ -25,3 +39,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.CARDANOPI_NPM_TOKEN }}
run: yarn publish --access public
working-directory: ./dist

0 comments on commit 63c6bc7

Please sign in to comment.