Publish development release from git commit SHA #66
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 development release from git commit SHA' | |
on: | |
- workflow_dispatch | |
jobs: | |
publish_dev_release: | |
name: Publish development release from git commit SHA | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn install --frozen-lockfile --ignore-scripts | |
- name: Assigning new version | |
run: npm version prerelease --commit-hooks=false --git-tag-version=false --preid=dev-${GITHUB_SHA:0:6} | |
- name: Publishing release | |
run: npm run publish:dev | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_TOKEN }} |