Skip to content

Publish development release from git commit SHA #66

Publish development release from git commit SHA

Publish development release from git commit SHA #66

Workflow file for this run

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 }}