Skip to content
Permalink
Browse files
Switch to npm in publish task
  • Loading branch information
ferferga committed May 28, 2021
1 parent 97932a5 commit 8e1a818e3196b937b9cdb68a5710f2229f63c96b
Showing with 9 additions and 9 deletions.
  1. +9 −9 .github/workflows/publish.yml
@@ -19,21 +19,21 @@ jobs:
node-version: 14
registry-url: 'https://registry.npmjs.org'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Cache node_modules
uses: actions/cache@v2.1.5
id: yarn-cache
uses: actions/cache@v2.1.6
id: npm-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-npm-
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci --no-audit

- name: Publish to npm
run: npm publish --access public

0 comments on commit 8e1a818

Please sign in to comment.