Skip to content

Commit

Permalink
ci: Ensure to install dependencies prior pubishing release notes
Browse files Browse the repository at this point in the history
It's to ensure we're not affected by npm/npx#77
  • Loading branch information
medikoo committed Aug 25, 2020
1 parent e7650e0 commit 0253fd8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ jobs:
node-version: 14.x
registry-url: https://registry.npmjs.org

- name: Retrieve dependencies from cache
id: cacheNpm
uses: actions/cache@v2
with:
path: |
~/.npm
node_modules
key: npm-v14-${{ runner.os }}-refs/heads/master-${{ hashFiles('package.json') }}
restore-keys: npm-v14-${{ runner.os }}-refs/heads/master-

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
run: |
npm update --no-save
npm update --save-dev --no-save
- name: Publish new version
run: |
npm publish
Expand Down

0 comments on commit 0253fd8

Please sign in to comment.