Skip to content

Commit

Permalink
Merge pull request #87 from OriginTrail/npm-publish-fix-3
Browse files Browse the repository at this point in the history
Added Node.js setup directly to npm publish action job
  • Loading branch information
u-hubar authored Jul 10, 2023
2 parents 7dc343d + 315e18b commit 30725c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ runs:
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
cache: npm

- name: Cache node modules
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up environment
uses: ./.github/actions/setup
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish npm package
run: npm publish
Expand Down

0 comments on commit 30725c5

Please sign in to comment.