Skip to content

iTwin Viewer NPM Publish from Next branch #15

iTwin Viewer NPM Publish from Next branch

iTwin Viewer NPM Publish from Next branch #15

Workflow file for this run

# This workflow will install dependencies, build the monorepo, and publish packages from the "next" branch as prereleases
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: iTwin Viewer NPM Publish from Next branch
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: |
set -e
echo 'Installing...'
node common/scripts/install-run-rush.js install
echo 'Building...'
node common/scripts/install-run-rush.js rebuild
echo 'Publishing...'
git config user.name "imodeljs-admin"
git config user.email "[email protected]"
node common/scripts/install-run-rush.js version --bump --target-branch next
node common/scripts/install-run-rush.js publish --include-all --version-policy prerelease-monorepo-lockStep --set-access-level public --apply --publish --npm-auth-token $NPM_TOKEN --target-branch next --tag next
env:
NPM_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}