Skip to content

Publish to npm registry #45

Publish to npm registry

Publish to npm registry #45

Workflow file for this run

name: Publish to npm registry
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
scope: '@devexperts'
- run: yarn install --frozen-lockfile
- run: git config user.email "pmalyshev@devexperts.com"
- run: git config user.name "dxpm"
- run: npm version from-git
# - run: git commit -a -m "ci:bump package version"
- run: git push https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git ${{ github.ref }}
# - run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_DEVEXPERTS_BOT_PUBLISH_TOKEN}}