Skip to content

Merge pull request #331 from polkadot-ui/nik-some-more-connect-enhanc… #39

Merge pull request #331 from polkadot-ui/nik-some-more-connect-enhanc…

Merge pull request #331 from polkadot-ui/nik-some-more-connect-enhanc… #39

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