Skip to content

fix(ci): install workspace before npm publish so workspace:* deps res… #40

fix(ci): install workspace before npm publish so workspace:* deps res…

fix(ci): install workspace before npm publish so workspace:* deps res… #40

Workflow file for this run

name: release
on:
push:
branches: [main]
permissions:
contents: write
actions: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Enable corepack
run: corepack enable
# pnpm publish rewrites workspace:* deps (e.g. webentor-core's
# @webikon/webentor-configs) to real versions, which requires an
# installed workspace.
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
# Versioning is manual (see AGENTS.md "Release Workflow"): a release is
# a reviewed commit that bumps version files. This workflow only acts on
# what is committed — it never decides versions itself.
- name: Check version sources are in sync
run: node scripts/check-versions.mjs
- name: Publish npm packages not yet on the registry
run: node scripts/publish-npm.mjs
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Tag pushes with GITHUB_TOKEN don't trigger `on: push: tags`, so the
# script also dispatches the split workflows directly.
- name: Tag mirrored packages and dispatch split workflows
run: bash scripts/release-tags.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}