Skip to content

OZ-523: Setup Ozone E2E versioning #81

OZ-523: Setup Ozone E2E versioning

OZ-523: Setup Ozone E2E versioning #81

Workflow file for this run

name: Publish to NPM repository
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://nexus.mekomsolutions.net/repository/npm-public/'
- name: Install dependencies
run: yarn install
- name: Set package version
run: |
git config user.email "'" && git config user.name "ozone-his"
yarn version --new-version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}"
- name: Publish to NPM repository
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}