Skip to content

Merge pull request #349 from polkadot-ui/release-utils-0.0.2 #54

Merge pull request #349 from polkadot-ui/release-utils-0.0.2

Merge pull request #349 from polkadot-ui/release-utils-0.0.2 #54

Workflow file for this run

name: Publish Core
on:
push:
branches: [main]
jobs:
# Uses the above list of packages to check for new versions, and publishes them if they are new.
# NOTE: Publishing currently frozen.
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- run: pnpm install
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
cache: "pnpm"
# Build the package if new version is available.
- name: Build Package
run: pnpm run build
working-directory: "packages/ui-core"
# Publish a package build from `dist` folder. Only runs if the package is a new version.
- name: Publish Package From Build
run: npm publish
working-directory: "packages/ui-core/dist"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}