Skip to content

Commit f14f674

Browse files
use publish npm shared
1 parent b03e0ac commit f14f674

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,8 @@ on:
99

1010
jobs:
1111
publish-npm:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
with:
17-
node-version: ${{ matrix.node-version }}
18-
cache: 'yarn'
19-
- run: yarn install
20-
- uses: JS-DevTools/npm-publish@v1
21-
with:
22-
tag: ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
23-
token: ${{ secrets.NPM_TOKEN }}
12+
uses: cabify/javascript-actions/.github/workflows/npm_publish.yml@main
13+
with:
14+
tag: ${{ contains(github.ref_name,'beta') && 'beta' || 'latest' }}
15+
secrets:
16+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)