Skip to content

Publish dev pre-release NPM packages #50

Publish dev pre-release NPM packages

Publish dev pre-release NPM packages #50

Workflow file for this run

name: Publish dev pre-release NPM packages
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Configure git
run: |
git config --local user.email [email protected]
git config --local user.name imodeljs-admin
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.12.0
- name: Install dependencies
run: pnpm install --frozen-lockfile=true
- name: Run Tests
run: pnpm run cover
- name: Publish packages
run: |
pnpm publish-packages-dev -y --branch ${{ github.ref_name }} --message "Version bump [skip actions]"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}