Publish to npm registry #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |