2.4.5 #40
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: git checkout ${{ github.ref_name }} | |
- run: npm version from-git --no-git-tag-version | |
- 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}} |