Skip to content

Commit

Permalink
use publish npm shared
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrofdiaz committed Apr 20, 2022
1 parent b03e0ac commit f14f674
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,8 @@ on:

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- uses: JS-DevTools/npm-publish@v1
with:
tag: ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
token: ${{ secrets.NPM_TOKEN }}
uses: cabify/javascript-actions/.github/workflows/npm_publish.yml@main
with:
tag: ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
secrets:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit f14f674

Please sign in to comment.