npm publish

This commit is contained in:
folex 2020-12-29 12:39:48 +03:00
parent ea228ff107
commit 243918818a

View File

@ -36,13 +36,16 @@ jobs:
- name: Set version to ${{ env.FINAL_VERSION }} - name: Set version to ${{ env.FINAL_VERSION }}
run: yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version run: yarn version --new-version ${{ env.FINAL_VERSION }} --no-git-tag-version
### Publish to NPM ### Publish to NPM registry
- uses: JS-DevTools/npm-publish@v1 - uses: actions/setup-node@v1
with: with:
package: package.json node-version: '14'
access: public registry-url: 'https://registry.npmjs.org'
check-version: false
token: ${{ secrets.NPM_TOKEN }} - run: npm publish --access public
working-directory: pkg
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
### Create a pre-release ### Create a pre-release
- name: Create Release - name: Create Release