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